Dzahn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/277340
Change subject: ganglia: on jessie, spawn aggregators with systemd
......................................................................
ganglia: on jessie, spawn aggregators with systemd
If on jessie/systemd, we are starting each aggregator
instance as a separate service, spawned from a single
service template unit file.
(as opposed to upstart where we had one service starting many
aggregators from the init script)
Bug:T124197
Change-Id: I10726144b4f21b3e4b525f94e24b6059b88cd7a0
---
M modules/ganglia/manifests/monitor/aggregator/instance.pp
1 file changed, 10 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/40/277340/1
diff --git a/modules/ganglia/manifests/monitor/aggregator/instance.pp
b/modules/ganglia/manifests/monitor/aggregator/instance.pp
index 3823148..c2cd58d 100644
--- a/modules/ganglia/manifests/monitor/aggregator/instance.pp
+++ b/modules/ganglia/manifests/monitor/aggregator/instance.pp
@@ -43,4 +43,14 @@
content => template("${module_name}/gmond.conf.erb"),
notify => Service['ganglia-monitor-aggregator'],
}
+
+ # on jessie/systemd each instance is a separate service
+ # which is spawned from a common service template
+ if os_version('debian >= jessie') {
+ service { "ganglia-monitor-aggregator-instance-${id}":
+ ensure => running,
+ provider => systemd,
+ enable => true,
+ }
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/277340
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I10726144b4f21b3e4b525f94e24b6059b88cd7a0
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits