diff options
| author | Josh Cooper <josh@puppetlabs.com> | 2011-08-18 10:35:50 -0700 |
|---|---|---|
| committer | Josh Cooper <josh@puppetlabs.com> | 2011-08-22 15:07:16 -0700 |
| commit | 47058abc0c5647d59b0dd21181e67dbfdd908292 (patch) | |
| tree | 762271d9f93ffb9fb81553f3f7c418a19f55f026 /lib/puppet | |
| parent | 2ac87905708ddbc44d212e10e34d72cad09e3271 (diff) | |
| download | puppet-47058abc0c5647d59b0dd21181e67dbfdd908292.tar.gz puppet-47058abc0c5647d59b0dd21181e67dbfdd908292.tar.xz puppet-47058abc0c5647d59b0dd21181e67dbfdd908292.zip | |
(#8662) Skip user and group resources when applying settings on Windows
When running as root, puppet will generate a catalog from its settings
to create the various directories, e.g. var, ssl. If mkusers is true
and a setting implements owner and/or group methods, then puppet will
automatically add user and group resources to the catalog (provided
the user name is not root and the group names are not root or
wheel). This functionality will not be supported on Windows, and so
this step is skipped.
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/util/settings.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/util/settings.rb b/lib/puppet/util/settings.rb index caaf61b7b..3039a7b0a 100644 --- a/lib/puppet/util/settings.rb +++ b/lib/puppet/util/settings.rb @@ -780,6 +780,7 @@ if @config.include?(:run_mode) # Create the transportable objects for users and groups. def add_user_resources(catalog, sections) return unless Puppet.features.root? + return if Puppet.features.microsoft_windows? return unless self[:mkusers] @config.each do |name, setting| |
