summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk/manifests/agent/haproxy.pp
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-03-11 21:58:37 +0100
committervarac <varacanero@zeromail.org>2015-03-11 21:58:37 +0100
commit73ca332fa07b4d3d888c6b189ca1ba6502836d98 (patch)
treef6565e0ec97bafec65abcd96942b2161ad91305e /puppet/modules/site_check_mk/manifests/agent/haproxy.pp
parent96882181d7cdcdf2c10918c007ae15dfd566410a (diff)
parent0c916d8e70bdb6165fe25d6f4e3ceadb1c0622a0 (diff)
Merge branch '6788_augeas_mrpe_cfg' into develop
Diffstat (limited to 'puppet/modules/site_check_mk/manifests/agent/haproxy.pp')
-rw-r--r--puppet/modules/site_check_mk/manifests/agent/haproxy.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/puppet/modules/site_check_mk/manifests/agent/haproxy.pp b/puppet/modules/site_check_mk/manifests/agent/haproxy.pp
index e7986db1..5e7215b4 100644
--- a/puppet/modules/site_check_mk/manifests/agent/haproxy.pp
+++ b/puppet/modules/site_check_mk/manifests/agent/haproxy.pp
@@ -3,10 +3,12 @@ class site_check_mk::agent::haproxy {
include site_check_mk::agent::package::nagios_plugins_contrib
# local nagios plugin checks via mrpe
- file_line {
- 'haproxy':
- line => 'Haproxy /usr/lib/nagios/plugins/check_haproxy -u "http://localhost:8000/haproxy;csv"',
- path => '/etc/check_mk/mrpe.cfg';
+ augeas { 'haproxy':
+ incl => '/etc/check_mk/mrpe.cfg',
+ lens => 'Spacevars.lns',
+ changes => [
+ 'rm /files/etc/check_mk/mrpe.cfg/Haproxy',
+ 'set Haproxy \'/usr/lib/nagios/plugins/check_haproxy -u "http://localhost:8000/haproxy;csv"\'' ];
}
}