From: Silvio Rhatto Date: Wed, 4 Nov 2015 19:55:33 +0000 (-0200) Subject: Proxy: munin can be disabled X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=65406321681d21047f45c8fc8597032b84e10eb5;p=puppet-nodo.git Proxy: munin can be disabled --- 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