diff options
author | mh <mh@immerda.ch> | 2009-10-31 15:16:52 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-10-31 15:16:52 +0100 |
commit | 2f2ed8909334758c2af28caa015a9219eac9aad7 (patch) | |
tree | c0695fdb264fc955d80afdddd00bfe1e6b5789c9 /lib | |
parent | 12f134a56baef10ed2acaeaad203716ee0c7a785 (diff) |
move plugin directory to fit new 0.25 style
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/functions/mkpasswd.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/mkpasswd.rb b/lib/puppet/parser/functions/mkpasswd.rb new file mode 100644 index 0000000..645df9b --- /dev/null +++ b/lib/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 |