Displaying 1 result from an estimated 1 matches for "write_line_to_fil".
Did you mean:
write_line_to_file
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
/etc/puppet/modules/writ...