Hi list,

Iam working on a module for ganglia that builds two config files.

The first is an aggregated config file and contains entry's like
this:

group   "clustername"   node1   node2
group   "clustertwo"   node4     node5

The second file only contains the entry for the intented cluster, in
the case of clustertwo this would be:

send_channel node4
send_channel node5

I intend two solve this using two custom functions that read the same
config file.
The first returns a list of nodes for the requested cluster.
The second returns the list of clusters with there nodes.

But how can i get the current module path. so that i can access the
config file that is in modules/ganglia/config/.
so I want something like this:  IO.readlines( puppet.prefix() +
"config/ganglia-config.cfg" )

Is this possible?


With regards,

Jos Houtman

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

Reply via email to