From 65406321681d21047f45c8fc8597032b84e10eb5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 4 Nov 2015 17:55:33 -0200 Subject: Proxy: munin can be disabled --- manifests/role/proxy.pp | 11 +++++++---- 1 file 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 -- cgit v1.2.3