From fa6f26076d4762118544467196623d36117f1607 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 7 Mar 2014 17:35:36 -0300 Subject: Manage rrdcached just on main master (3) --- manifests/subsystem/monitor/master.pp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'manifests/subsystem') 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'] ], } } -- cgit v1.2.3