diff options
-rw-r--r-- | CHANGELOG | 4 | ||||
-rwxr-xr-x | lib/puppet/type/user.rb | 8 |
2 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,9 @@ 0.24.x Fixed debug messages in package type - thanks to Todd Zullinger for this fix + + Fixed #1566 - changed password property of the user type + + Fixed debug messages in package type Updated Red Hat spec file 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 |