asq
2012-07-20 13:55:44 UTC
hi,
we're currently evaluating hiera to get rid of hordes of global variables
and prepare our manifests for next iteration of puppet.
now, we have some variables, used by classes, which set properties based on
facts, ie. we set approperiate interface address which should be used on
monitoring server, ie:
$nagiosip = $ipaddress_bond0_1234
now, we can convert it to:
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).
is it possible to achieve the same thing with hiera (then we could just set
default parameter of nagios::host class to hiera)? we're currently
evaluating yaml backend, puppet backend is not as easy to understand to me
and i'm not sure if we can mix both (ie. define separate calling_modules
and search hierarchies for both).
we're currently evaluating hiera to get rid of hordes of global variables
and prepare our manifests for next iteration of puppet.
now, we have some variables, used by classes, which set properties based on
facts, ie. we set approperiate interface address which should be used on
monitoring server, ie:
$nagiosip = $ipaddress_bond0_1234
now, we can convert it to:
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).
is it possible to achieve the same thing with hiera (then we could just set
default parameter of nagios::host class to hiera)? we're currently
evaluating yaml backend, puppet backend is not as easy to understand to me
and i'm not sure if we can mix both (ie. define separate calling_modules
and search hierarchies for both).
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/IhWZNvwQQNgJ.
To post to this group, send email to puppet-***@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/IhWZNvwQQNgJ.
To post to this group, send email to puppet-***@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.