module-user/plugins/puppet/parser/functions/mkpasswd.rb
2008-12-05 14:44:27 +00:00

6 lines
189 B
Ruby

# 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