with a custom type, structured like so:
[modules]/mymodule/manifests/init.pp
[modules]/mymodule/lib/puppet/provider/mytype/foo.rb
[modules]/mymodule/lib/puppet/type/mytype.rb
In foo.rb, I'd like to call some custom ruby functions in a module and/
or class. These are generic functions that may be used in other
modules, e.g. md5.rb with a collection of MD5 functions/methods.
I was thinking a generic 'custom' module laid out something like
[modules]/custom/lib/puppet/md5.rb
[modules]/custom/lib/puppet/networking.rb
What's the best place to put these so they get autoloaded by
pluginsync, and what is the preferred approach for namespacing?
Basically how do I require these within other modules.
Poking around the forge, I've seen things like
[modules]/custom/lib/puppet/util/md5.rb
and
[modules]/custom/lib/puppet/modules/md5.rb
But often there seem to be hacks used to load these.
Regards,
Adam
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.