diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/role/web.pp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/manifests/role/web.pp b/manifests/role/web.pp index 4cd1719..87401e0 100644 --- a/manifests/role/web.pp +++ b/manifests/role/web.pp @@ -6,16 +6,20 @@ class nodo::role::web inherits nodo::base::virtual { } # Munin - munin::plugin { [ 'apache_accesses', 'apache_processes', 'apache_volume' ]: - ensure => present, - } + $munin = hiera('nodo::munin_node::manage', True) + if $munin == true { + munin::plugin { [ 'apache_accesses', 'apache_processes', 'apache_volume' ]: + ensure => present, + } - package { 'libcache-cache-perl': # needed by munin mysql plugin - ensure => present, - } - munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]: - ensure => present, - config => "user root\nenv.mysqlopts --defaults-extra-file=/etc/mysql/debian.cnf", + package { 'libcache-cache-perl': # needed by munin mysql plugin + ensure => present, + } + + munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]: + ensure => present, + config => "user root\nenv.mysqlopts --defaults-extra-file=/etc/mysql/debian.cnf", + } } # Classes for web nodes |