If you look at this example:
>> I have a Ruby class in "nagios" module - it's located in nagios/
>> manifests/ssa_nagios_checks.rb
>> and looks like this
>>
>> hostclass :ssa_nagios_checks do
>> ...
>> end
>>
>> In nagios/manifests/init.pp I have
>>
>> class nagios::server {
>> ...
>> include ssa_nagios_checks
>> ...
>> }
The autoloader/module layout recommendations/rules haven't been followed.
You actually want something more like:
nagios/manifests/server.pp:
class nagios::server {
include nagios::ssa_nagios_checks
}
nagios/manifests/ssa_nagios_checks.rb:
hostclass :'nagios::ssa_nagios_checks' do
notice(["should work"])
end
This should work. Can you test it?
Remember that sub-classes belong in their own file ... and only the
class with the same name as the module belongs in init.pp. Also - you
have to fully qualify class names when declaring them in their rb/pp
file.
ken.
--
"Join us for PuppetConf, September 22nd and 23rd in Portland, OR:
http://bit.ly/puppetconfsig"
--
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.