aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/web.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-26 15:44:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-26 15:44:00 -0200
commit33815f3ecd0d12a8c019eb066280d1e660f8ba20 (patch)
tree2f01288c7216da4f83b5a1ab318d145dbfae73ec /manifests/role/web.pp
parent6625c836593dbbc624965a35ed329eb23d7217ad (diff)
downloadpuppet-nodo-33815f3ecd0d12a8c019eb066280d1e660f8ba20.tar.gz
puppet-nodo-33815f3ecd0d12a8c019eb066280d1e660f8ba20.tar.bz2
Control munin plugins for web nodes
Diffstat (limited to 'manifests/role/web.pp')
-rw-r--r--manifests/role/web.pp22
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