summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-06-07 02:31:38 +0200
committervarac <varacanero@zeromail.org>2015-06-07 10:24:11 +0200
commit18e247ae29e7ee787e350724e2884da0a74bbd63 (patch)
treebfa6b96ae139eb37a2ce8b9e50a10a69954e5cf7
parent251178948efda3cf15b6f64af57d6d594f31695e (diff)
deploy check_openvpn_server.pl after nagios-plugins-standard package is installed0.7.0rc2
Change-Id: I272b30fd79e89ddf968c0a6e453d53a1f0540397
-rw-r--r--puppet/modules/site_nagios/manifests/server.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/puppet/modules/site_nagios/manifests/server.pp b/puppet/modules/site_nagios/manifests/server.pp
index ae266c36..cb6c8d95 100644
--- a/puppet/modules/site_nagios/manifests/server.pp
+++ b/puppet/modules/site_nagios/manifests/server.pp
@@ -1,3 +1,4 @@
+# configures nagios on monitoring node
class site_nagios::server inherits nagios::base {
# First, purge old nagios config (see #1467)
@@ -42,10 +43,11 @@ class site_nagios::server inherits nagios::base {
# deploy serverside plugins
file { '/usr/lib/nagios/plugins/check_openvpn_server.pl':
- source => 'puppet:///modules/nagios/plugins/check_openvpn_server.pl',
- mode => '0755',
- owner => 'nagios',
- group => 'nagios',
+ source => 'puppet:///modules/nagios/plugins/check_openvpn_server.pl',
+ mode => '0755',
+ owner => 'nagios',
+ group => 'nagios',
+ require => Package['nagios-plugins'];
}
create_resources ( site_nagios::add_host_services, $nagios_hosts )