summaryrefslogtreecommitdiffstats
path: root/lib/puppet/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/config.rb')
-rw-r--r--lib/puppet/config.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/config.rb b/lib/puppet/config.rb
index 5725bcd93..9a381585a 100644
--- a/lib/puppet/config.rb
+++ b/lib/puppet/config.rb
@@ -411,6 +411,9 @@ class Config
# If a user and/or group is set, then make sure we're
# managing that object
if obj.respond_to? attr and name = obj.send(attr)
+ # Skip root or wheel
+ next if %w{root wheel}.include?(name.to_s)
+
# Skip owners and groups we've already done, but tag
# them with our section if necessary
if done[type].include?(name)