Displaying 1 result from an estimated 1 matches for "vickikozel".
2012 Apr 05
3
newly added ruby function executes on the server instead of the node
Hi,
1) I added this test function tom my
/etc/puppet/modules/write_line_to_file/lib/puppet/parser/functions/write_line_to_file.rb
:
*module Puppet::Parser::Functions newfunction(:write_line_to_file) do |args|
filename = args[0]
str = args[1]
File.open(args[0], ''a'') {|fd| fd.puts str }
end
end*
2) I invoked it in the