diff options
author | Johan Lundberg <lundberg@nordu.net> | 2015-04-22 16:00:50 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2015-04-22 16:00:50 +0200 |
commit | a60382a9ef96e350036c693ddf7b6be3ec5083fd (patch) | |
tree | f70bd92e1245245bbe1da0a9cf3e349fc5439715 /global | |
parent | 6cd5d67d5f98328375bbb717a769d3a4f8299fd8 (diff) |
Added notify and dependencies for nagios service and files.sunet-ops-2015-04-22-v13sunet-ops-2015-04-22-v12
Diffstat (limited to 'global')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/nagios.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/nagios.pp b/global/overlay/etc/puppet/modules/sunet/manifests/nagios.pp index b05100e..c09679d 100644 --- a/global/overlay/etc/puppet/modules/sunet/manifests/nagios.pp +++ b/global/overlay/etc/puppet/modules/sunet/manifests/nagios.pp @@ -8,18 +8,23 @@ class sunet::nagios { ensure => 'installed', } -> service {'nagios-nrpe-server': - ensure => 'running' + ensure => 'running', + enable => 'true', + require => Package['nagios-nrpe-server'], } -> file { "/etc/nagios/nrpe.cfg" : + notify => Service['nagios-nrpe-server'], ensure => 'file', mode => '0640', group => 'nagios', + require => Package['nagios-nrpe-server'], content => template('sunet/nagioshost/nrpe.cfg.erb'), } -> file { "/usr/lib/nagios/plugins/check_uptime.pl" : ensure => 'file', mode => '0751', group => 'nagios', + require => Package['nagios-nrpe-server'], content => template('sunet/nagioshost/check_uptime.pl.erb'), } -> ufw::allow { "allow-nrpe-v4": |