[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.1rc1-141-gcdb2b90

markus (none) markus at AVA-351181.
Mon Aug 16 12:48:53 UTC 2010


The following commit has been merged in the upstream branch:
commit 1cba9a7a713261fd62ceec440a3e57667eb103ba
Author: Alice Kærast <kaerast at newscloud.com>
Date:   Mon Aug 2 12:02:26 2010 +0100

    added md5 support as requested in http://serverfault.com/questions/166199/puppet-md5-sum-of-string

diff --git a/lib/puppet/parser/functions/md5.rb b/lib/puppet/parser/functions/md5.rb
new file mode 100644
index 0000000..f7a4f72
--- /dev/null
+++ b/lib/puppet/parser/functions/md5.rb
@@ -0,0 +1,5 @@
+Puppet::Parser::Functions::newfunction(:md5, :type => :rvalue, :doc => "Returns a MD5 hash value from a provided string.") do |args|
+      require 'md5'
+
+      Digest::MD5.hexdigest(args[0])
+end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list