diff options
author | varac <varacanero@zeromail.org> | 2014-02-27 22:43:23 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-27 22:43:23 +0100 |
commit | 0cd0076f945c0e02bfdc50ff483ceebceec131e2 (patch) | |
tree | 21c631e5bdee5e3019c7fbe4dfac1b04ef325599 /puppet/modules/site_haproxy | |
parent | e8cd9ab2d4480aa7c16d15f5db664fa650d4c655 (diff) | |
parent | 66cc1345c3af4e814d98c8e4b90d90158ac9d399 (diff) |
Merge branch 'one_monitornode_rules_them_all' into 0.6
Diffstat (limited to 'puppet/modules/site_haproxy')
-rw-r--r-- | puppet/modules/site_haproxy/files/haproxy-stats.cfg | 6 | ||||
-rw-r--r-- | puppet/modules/site_haproxy/manifests/init.pp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/puppet/modules/site_haproxy/files/haproxy-stats.cfg b/puppet/modules/site_haproxy/files/haproxy-stats.cfg new file mode 100644 index 00000000..e6335ba2 --- /dev/null +++ b/puppet/modules/site_haproxy/files/haproxy-stats.cfg @@ -0,0 +1,6 @@ +# provide access to stats for the nagios plugin +listen stats 127.0.0.1:8000 + mode http + stats enable + stats uri /haproxy + diff --git a/puppet/modules/site_haproxy/manifests/init.pp b/puppet/modules/site_haproxy/manifests/init.pp index 602e26be..1a681373 100644 --- a/puppet/modules/site_haproxy/manifests/init.pp +++ b/puppet/modules/site_haproxy/manifests/init.pp @@ -22,4 +22,11 @@ class site_haproxy { } } + # monitor haproxy + concat::fragment { 'stats': + target => '/etc/haproxy/haproxy.cfg', + order => '90', + source => 'puppet:///modules/site_haproxy/haproxy-stats.cfg'; + } + include site_check_mk::agent::haproxy } |