summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Boyett <jonathan@failingservers.com>2010-11-30 13:06:06 -0800
committerPaul Berry <paul@puppetlabs.com>2010-12-06 16:00:23 -0800
commit84bf02e9ade666c4ba1bb63476bfd4b35226e7ac (patch)
treeeb0e3f07402ee13e373d005c5c0a2dc86820ab8e
parent93526712755d5c30e020754a6f759b204921f423 (diff)
downloadpuppet-84bf02e9ade666c4ba1bb63476bfd4b35226e7ac.tar.gz
puppet-84bf02e9ade666c4ba1bb63476bfd4b35226e7ac.tar.xz
puppet-84bf02e9ade666c4ba1bb63476bfd4b35226e7ac.zip
Bug #5423: This moves the home directory property before the uid property, thus minimizing room for damage when usermod is in use.
-rwxr-xr-xlib/puppet/type/user.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb
index c8110bb69..761d5d71b 100755
--- a/lib/puppet/type/user.rb
+++ b/lib/puppet/type/user.rb
@@ -72,6 +72,11 @@ module Puppet
end
end
+ newproperty(:home) do
+ desc "The home directory of the user. The directory must be created
+ separately and is not currently checked for existence."
+ end
+
newproperty(:uid) do
desc "The user ID. Must be specified numerically. For new users
being created, if no user ID is specified then one will be
@@ -138,11 +143,6 @@ module Puppet
desc "A description of the user. Generally is a user's full name."
end
- newproperty(:home) do
- desc "The home directory of the user. The directory must be created
- separately and is not currently checked for existence."
- end
-
newproperty(:shell) do
desc "The user's login shell. The shell must exist and be
executable."