summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet
diff options
context:
space:
mode:
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet')
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/nagios.pp7
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":