From f0e70a1cd975ab89b5c693073957491f68c2a37c Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Tue, 20 Nov 2012 13:39:20 +0200 Subject: [PATCH] Added all hosts hostgroup for nagios --- nagios/manifests/init.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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",