Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Wrap text
Report abuse
# 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
$pw = mkpasswd("test", "12345678") notify { $pw: }
notice: //Node[junglist]/Notify[$1$12345678$oEitTZYQtRHfNGmsFvTBA/]/message: is absent, should be $1$12345678$oEitTZYQtRHfNGmsFvTBA/
Pasted June 26, 2008 6:58PM EDT
by fujin
Channel #puppet on irc.freenode.com
Embed
paste again
Ads from Ruby Row