Hi All,
I have setup puppet to self classify nodes based on custom facter values
in order to avoid adding hosts in node.pp. Based on the setup mentioned
below:
http://nuknad.com/2011/02/11/self-classifying-puppet-nodes/
How would one create/design an icinga setup where when the nodes come
online based on the facter value assigns it self to the particular host and
service groups under icinga?
Eg: I have following in puppet
- In /etc/puppet/modules/truth/
manifests/init.pp
class truth::enforcer {
$groupname =
"$company_platform-$company_dc-$company_role"
case $groupname {
"production-dc1-dev_tst" : {
include role::production::dc1::dev_tst
}
}
}
- In /etc/puppet/manifests/nodes.pp
node default {
include truth::enforcer
}
- In classes.pp
class role::production::dev_tst::dc inherits role {
include apache
}
- In /etc/company_facts.txt for the host that is provisioned i have the
following
role = dev_tst
platform = production
location = dc1
Could anyone point me to some examples?
Regards,
--
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/-/pMaWTB-TmhEJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.