[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:20:55 UTC 2009


The following commit has been merged in the master branch:
commit 8f1336f94e4f566e229efb64be168530e402741b
Author: James Turnbull <james at lovedthanlost.net>
Date:   Fri Sep 12 08:44:41 2008 +1000

    Fixed #1566 - changed password property of the user type

diff --git a/CHANGELOG b/CHANGELOG
index 7cd7d05..056e8f5 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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 71507d1..039bcb7 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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list