From 9e55abd8b92e538c9b08cceca54a385e952be34a Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 5 Dec 2008 14:44:27 +0000 Subject: merged with puzzle --- plugins/puppet/parser/functions/mkpasswd.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 plugins/puppet/parser/functions/mkpasswd.rb (limited to 'plugins/puppet/parser/functions/mkpasswd.rb') diff --git a/plugins/puppet/parser/functions/mkpasswd.rb b/plugins/puppet/parser/functions/mkpasswd.rb new file mode 100644 index 0000000..645df9b --- /dev/null +++ b/plugins/puppet/parser/functions/mkpasswd.rb @@ -0,0 +1,6 @@ +# needs an 8-char salt *always* +module Puppet::Parser::Functions + newfunction(:mkpasswd, :type => :rvalue) do |args| + %x{/usr/bin/mkpasswd -H MD5 #{args[0]} #{args[1]}}.chomp + end +end -- cgit v1.2.3