aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/monitor
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-07 17:35:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-07 17:35:36 -0300
commitfa6f26076d4762118544467196623d36117f1607 (patch)
tree7133a350091e57d6c9fac310b38cd8b45842d7de /manifests/subsystem/monitor
parent64840eb79e98b385579e749c40c1524a83b95a06 (diff)
downloadpuppet-nodo-fa6f26076d4762118544467196623d36117f1607.tar.gz
puppet-nodo-fa6f26076d4762118544467196623d36117f1607.tar.bz2
Manage rrdcached just on main master (3)
Diffstat (limited to 'manifests/subsystem/monitor')
-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'] ],
}
}