summaryrefslogtreecommitdiff
path: root/puppet/modules/site_nagios/manifests
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-12-17 20:01:54 +0100
committervarac <varacanero@zeromail.org>2014-12-17 20:01:54 +0100
commit2f02d8aa21b866f2e37426afa8110a5c1f5c31e6 (patch)
tree37d5d4701e9652575917cbaa6323ab5eb3204153 /puppet/modules/site_nagios/manifests
parentbbd0bb1e0a497a9aca93065c3c6ec20fafde824a (diff)
parentc16c019a3f0f1f4d5ebce9ade59a7386c3c2bb18 (diff)
Merge branch '6556_tapicero_heartbeat' into develop
Diffstat (limited to 'puppet/modules/site_nagios/manifests')
-rw-r--r--puppet/modules/site_nagios/manifests/plugins.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/puppet/modules/site_nagios/manifests/plugins.pp b/puppet/modules/site_nagios/manifests/plugins.pp
new file mode 100644
index 00000000..90a01cfb
--- /dev/null
+++ b/puppet/modules/site_nagios/manifests/plugins.pp
@@ -0,0 +1,16 @@
+# Deploy generic plugins useful to all nodes
+# nagios::plugin won't work to deploy a plugin
+# because it complains with:
+# Could not find dependency Package[nagios-plugins] …
+# at /srv/leap/puppet/modules/nagios/manifests/plugin.pp:18
+class site_nagios::plugins {
+
+ file { [
+ '/usr/local/lib', '/usr/local/lib/nagios',
+ '/usr/local/lib/nagios/plugins' ]:
+ ensure => directory;
+ '/usr/local/lib/nagios/plugins/check_last_regex_in_log':
+ source => 'puppet:///modules/site_nagios/plugins/check_last_regex_in_log',
+ mode => '0755';
+ }
+}