diff options
author | mh <mh@immerda.ch> | 2008-12-05 14:44:27 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-12-05 14:44:27 +0000 |
commit | 9e55abd8b92e538c9b08cceca54a385e952be34a (patch) | |
tree | 5399a980dad7761eb847f4e1e8962baff246d4d9 /plugins/puppet | |
parent | 795a719e019e5682f4c8bdc821ee0ae1a3aa2058 (diff) |
merged with puzzle
Diffstat (limited to 'plugins/puppet')
-rw-r--r-- | plugins/puppet/parser/functions/mkpasswd.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |