diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-11-04 17:55:33 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-11-04 17:55:33 -0200 |
commit | 65406321681d21047f45c8fc8597032b84e10eb5 (patch) | |
tree | c1ed150ca0fd43129f52ff373db76165b8011e3e | |
parent | 9eb78de4191578298e83fd0d7b1cf79b3aab9b64 (diff) | |
download | puppet-nodo-65406321681d21047f45c8fc8597032b84e10eb5.tar.gz puppet-nodo-65406321681d21047f45c8fc8597032b84e10eb5.tar.bz2 |
Proxy: munin can be disabled
-rw-r--r-- | manifests/role/proxy.pp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manifests/role/proxy.pp b/manifests/role/proxy.pp index dc8edf0..2f86e08 100644 --- a/manifests/role/proxy.pp +++ b/manifests/role/proxy.pp @@ -13,10 +13,13 @@ class nodo::role::proxy inherits nodo::base::virtual { notify => Service['nginx'], } - # Graph nginx - munin::plugin { [ 'nginx_request', 'nginx_status' ]: - ensure => present, - config => 'env.url http://localhost/nginx_status', + $munin = hiera('nodo::host::use_munin', True) + if $munin == true { + # Graph nginx + munin::plugin { [ 'nginx_request', 'nginx_status' ]: + ensure => present, + config => 'env.url http://localhost/nginx_status', + } } # Needed by munin plugins |