Hi, 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 ... } And I get the following error .... debug: importing '/etc/puppet/modules/nagios/manifests/ ssa_nagios_checks.rb' in environment production err: Must pass a parameter or all necessary values at /etc/puppet/ modules/nagios/manifests/init.pp:19 on node mon1a.internal I could not find nothing on the web regarding this specific error message. What does it actualy means? Then I change to class nagios::server { ... include nagios::ssa_nagios_checks ... } I get error ... debug: importing '/etc/puppet/modules/nagios/manifests/ ssa_nagios_checks.rb' in environment production err: Could not find class nagios::ssa_nagios_checks for mon1a.internal at /etc/puppet/modules/nagios/manifests/init.pp:20 on node mon1a.internal Also instead I tried to use ssa_nagios_checks.rb from another module I have another puppet class in "ssa" module located at ssa/manifests/nagios.pp which has class ssa::nagios { ... include ssa_nagios_checks ... } And I'm getting the following error: err: Could not find class ssa_nagios_checks for mon1a.internal at /etc/ puppet/modules/ssa/manifests/nagios.pp:5 on node mon1a.internal Then I change to class ssa::nagios { ... include nagios::ssa_nagios_checks ... } Since ssa_nagios_checks is under "nagios" module - and still I get: err: Could not find class nagios::ssa_nagios_checks for mon1a.internal at /etc/puppet/modules/ssa/manifests/nagios.pp:5 on node mon1a.internal I have no ideas how to solve these 2 problems - which are - how do I properly use Ruby DSL class in the same module and how do I use it in another module? Thanks Alex -- 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.