summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-20 18:53:56 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-12-20 18:53:56 +0000
commita9dd641c215c1ef78eef3c3edcc8c4edb0cec95a (patch)
treef1094c850b02083db042d7207618ea9cb7d56a11
parent1bdf3794184b45a4e14633785d0be5cd9320348b (diff)
downloadpuppet-a9dd641c215c1ef78eef3c3edcc8c4edb0cec95a.tar.gz
puppet-a9dd641c215c1ef78eef3c3edcc8c4edb0cec95a.tar.xz
puppet-a9dd641c215c1ef78eef3c3edcc8c4edb0cec95a.zip
Fixing #361, I think. It appears to be a problem with missing a setting for realname.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1957 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--lib/puppet/config.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/config.rb b/lib/puppet/config.rb
index 9a381585a..91c348b51 100644
--- a/lib/puppet/config.rb
+++ b/lib/puppet/config.rb
@@ -426,10 +426,16 @@ class Config
newobj[:ensure] = "present"
end
newobj.tag(section)
+ if type == :user
+ newobj[:comment] ||= "%s user" % name
+ end
else
newobj = TransObject.new(name, type.to_s)
newobj.tags = ["puppet", "configuration", section]
newobj[:ensure] = "present"
+ if type == :user
+ newobj[:comment] ||= "%s user" % name
+ end
# Set the group appropriately for the user
if type == :user
newobj[:gid] = Puppet[:group]