example42 / puppet-nagios

Puppet module for Nagios
Other
4 stars 18 forks source link

Fix bad variable '_' vs '::' naming issue #6

Closed jpknoll closed 11 years ago

jpknoll commented 11 years ago

for some reason my installation isn't seeing the _ variable.

alvagante commented 11 years ago

Actually that's not a bad variable name, it's intended to be a top scope variable where you manage either where nagios files are ($::nagios_customconfigdir) or the criteria you can use to group different hosts under different nagios servers ($::nagios_grouplogic). This can't refer to the vars in params because they are used on the target nodes (where Nagios is actually not installed) and export resources to the Nagios server (which may have a different OS than the target nodes).

Documentation lacks important details and the solution works even if it's not perfect. Generally speaking: