On 12/28/2012 12:37 AM, Jakov Sosic wrote:

I've found that already. But I've decided to write my own function which
returns path to current module directory. If that doesn't succeed then
I'll use get_module_path.

Hm, I'm having problems with writing custom functions...

One question first - is it possible for custom function to generate some files on a given path on puppet master? I've tried the following:

module Puppet::Parser::Functions
  newfunction(:generate_host_keys, :type =>:rvalue) do |args|

  Dir.mkdir("/tmp/something", 755)

  end
end


But dir isn't created on puppet master on agent run...




--
Jakov Sosic
www.srce.unizg.hr

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to