From 2f2ed8909334758c2af28caa015a9219eac9aad7 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 31 Oct 2009 15:16:52 +0100 Subject: move plugin directory to fit new 0.25 style --- lib/puppet/parser/functions/mkpasswd.rb | 6 ++++++ plugins/puppet/parser/functions/mkpasswd.rb | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 lib/puppet/parser/functions/mkpasswd.rb delete mode 100644 plugins/puppet/parser/functions/mkpasswd.rb 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 diff --git a/plugins/puppet/parser/functions/mkpasswd.rb b/plugins/puppet/parser/functions/mkpasswd.rb deleted file mode 100644 index 645df9b..0000000 --- a/plugins/puppet/parser/functions/mkpasswd.rb +++ /dev/null @@ -1,6 +0,0 @@ -# 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 -- cgit v1.2.3