Bug #11930
Feature #8268: Basic Puppet agent support on Windows
Must use forward slashes when specifying a local modulepath on Windows
| Status: | Closed | Start date: | 01/12/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | windows | |||
| Target version: | 2.7.12 | |||
| Affected Puppet version: | 2.7.6 | Branch: | https://github.com/puppetlabs/puppet/pull/360 | |
| Keywords: | ||||
| Votes: | 0 |
Description
If you specify puppet apply --modulepath c:\modules puppet will silently ignore your modules. If you specify using forward slashes, it will work. The problem is Puppet::Node::Environment.validated_dirs is using a regex to determine if each modulepath component is an absolute path or not. It should just use Puppet::Util.absolute_path?
dir_regex = Puppet.features.microsoft_windows? ? /^[A-Za-z]:#{File::SEPARATOR}/ : /^#{File::SEPARATOR}/
where File::SEPARATOR is forward slash on both Unix and Windows, but File::ALT_SEPARATOR is a backslash on Windows
Related issues
History
Updated by Josh Cooper 4 months ago
- Status changed from Accepted to In Topic Branch Pending Review
- Branch set to https://github.com/puppetlabs/puppet/pull/360
Updated by Daniel Pittman 4 months ago
- Status changed from In Topic Branch Pending Review to Merged - Pending Release
- Target version changed from 2.7.x to 2.7.11
Updated by Matthaus Litteken 3 months ago
- Status changed from Merged - Pending Release to Closed
- Target version changed from 2.7.11 to 2.7.12
Released in Puppet 2.7.12rc1