6 lines
189 B
Ruby
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
|