diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-07 17:35:36 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-07 17:35:36 -0300 |
commit | fa6f26076d4762118544467196623d36117f1607 (patch) | |
tree | 7133a350091e57d6c9fac310b38cd8b45842d7de /manifests | |
parent | 64840eb79e98b385579e749c40c1524a83b95a06 (diff) | |
download | puppet-nodo-fa6f26076d4762118544467196623d36117f1607.tar.gz puppet-nodo-fa6f26076d4762118544467196623d36117f1607.tar.bz2 |
Manage rrdcached just on main master (3)
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/subsystem/monitor/master.pp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/subsystem/monitor/master.pp b/manifests/subsystem/monitor/master.pp index fd4f662..2d05e8e 100644 --- a/manifests/subsystem/monitor/master.pp +++ b/manifests/subsystem/monitor/master.pp @@ -10,9 +10,11 @@ class nodo::subsystem::monitor::master { $main = hiera('nodo::role::master::main', false) if $main == true { - $manage = present + $manage = 'present' + $service = 'running' } else { - $manage = absent + $manage = 'absent' + $service = 'stopped' } # @@ -34,7 +36,7 @@ class nodo::subsystem::monitor::master { } service { 'rrdcached': - ensure => $manage, + ensure => $service, require => [ Package['rrdcached'], User['munin'], Group['munin'] ], } } |