aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/proxy.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/role/proxy.pp')
-rw-r--r--manifests/role/proxy.pp11
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