On 07/20/2012 03:55 PM, asq wrote:
>
> class { "nagios::host": ip => $ipaddress_bond0_1234 }
>
> but... we'll need to include this on every single node (now we use node
> inheritance and just set $nagiosip on top node level for group of hosts
> that share the same vlan).
This end could be trivially met by putting this class declaration in a
scope that is present for all your nodes. Perhaps a "default" class or
similar.
The class parameter should be assigned directly from hiera. Failing
that, just assign a "nagiosip" value in hiera an put a
class { "nagios::host": ip => hiera("nagiosip") }
in your global scope.
--
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.