diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-07 17:10:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-07 17:10:52 -0300 |
commit | 04d3e0f273815483838504efd66372bc2eff316a (patch) | |
tree | b8c68b77029077568c98f5040908158a6731e142 /manifests/subsystem/monitor | |
parent | 9489428f3dc28b48870d8b9bfda04e90f67d9017 (diff) | |
download | puppet-nodo-04d3e0f273815483838504efd66372bc2eff316a.tar.gz puppet-nodo-04d3e0f273815483838504efd66372bc2eff316a.tar.bz2 |
Manage rrdcached just on main master
Diffstat (limited to 'manifests/subsystem/monitor')
-rw-r--r-- | manifests/subsystem/monitor/master.pp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/manifests/subsystem/monitor/master.pp b/manifests/subsystem/monitor/master.pp index 3ea3e6b..5be7b7e 100644 --- a/manifests/subsystem/monitor/master.pp +++ b/manifests/subsystem/monitor/master.pp @@ -7,17 +7,25 @@ class nodo::subsystem::monitor::master { require => Package['nagios'], } + $main = hiera('nodo::role::master::main', false) + + if $main == true { + $manage = present + } else { + $manage = absent, + } + # # See https://raymii.org/s/tutorials/Munin_optimalization_on_Debian.html # https://munin.readthedocs.org/en/latest/master/rrdcached.html # http://kuszelas.eu/~eyck/log/Howto/Munin.Rrdcached.html # package { 'rrdcached': - ensure => present, + ensure => $manage, } file { '/etc/default/rrdcached': - ensure => present, + ensure => $manage, owner => root, group => root, source => 'puppet:///modules/nodo/etc/default/rrdcached', @@ -26,7 +34,7 @@ class nodo::subsystem::monitor::master { } service { 'rrdcached': - ensure => running, + ensure => $manage, require => [ Package['rrdcached'], User['munin'], Group['munin'] ], } } |