summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-09-12 08:44:41 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-09-13 14:02:49 +1000
commit8f1336f94e4f566e229efb64be168530e402741b (patch)
treefb1f8170248e76d7d02dc68df82d1615e16630c3 /lib/puppet
parentd4d3213a4a8bc7be93a0adb85bf29b5739c7a81d (diff)
downloadpuppet-8f1336f94e4f566e229efb64be168530e402741b.tar.gz
puppet-8f1336f94e4f566e229efb64be168530e402741b.tar.xz
puppet-8f1336f94e4f566e229efb64be168530e402741b.zip
Fixed #1566 - changed password property of the user type
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/user.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/puppet/type/user.rb b/lib/puppet/type/user.rb
index 71507d172..039bcb7cb 100755
--- a/lib/puppet/type/user.rb
+++ b/lib/puppet/type/user.rb
@@ -158,6 +158,14 @@ module Puppet
newproperty(:password, :required_features => :manages_passwords) do
desc "The user's password, in whatever encrypted format the local machine requires. Be sure to enclose any value that includes a dollar sign ($) in single quotes (\')."
+
+ def change_to_s(currentvalue, newvalue)
+ if currentvalue == :absent
+ return "created password"
+ else
+ return "changed password"
+ end
+ end
end
newproperty(:groups) do