aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/monitor/master.pp8
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'] ],
}
}