summaryrefslogtreecommitdiff
path: root/plugins/puppet/parser/functions/mkpasswd.rb
blob: 645df9b60d9cc950714254dfe0d1e7f3d23e37f6 (plain)
1
2
3
4
5
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