diff --git a/nagios/manifests/init.pp b/nagios/manifests/init.pp index c8a3d1f..3d3cb00 100644 --- a/nagios/manifests/init.pp +++ b/nagios/manifests/init.pp @@ -153,6 +153,20 @@ class nagios::server { notify => Service["nagios"], } + file { "${confdir}/hostgroup_all.cfg": + ensure => present, + mode => "0640", + owner => "root", + group => "nagios", + before => Nagios_Hostgroup["all"], + require => File["/etc/nagios/conf.d"], + } + nagios_hostgroup { "all": + target => "${confdir}/hostgroup_all.cfg", + members => "*", + notify => Service["nagios"], + } + file { "${confdir}/host_default.cfg": ensure => present, mode => "0640",