Dzahn has submitted this change and it was merged.

Change subject: ganglia: ship native systemd service unit
......................................................................


ganglia: ship native systemd service unit

Note I haven't tackled service_unit vs service, out of scope for this
particular change.

Bug: T144778
Change-Id: I23731924393eadc1d1fe92c4432bbd3cb554a21d
---
A modules/ganglia/files/systemd/ganglia-monitor.service
M modules/ganglia/manifests/monitor/service.pp
2 files changed, 18 insertions(+), 0 deletions(-)

Approvals:
  Muehlenhoff: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/ganglia/files/systemd/ganglia-monitor.service 
b/modules/ganglia/files/systemd/ganglia-monitor.service
new file mode 100644
index 0000000..b06df2a
--- /dev/null
+++ b/modules/ganglia/files/systemd/ganglia-monitor.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Ganglia monitor
+Documentation=https://wikitech.wikimedia.org/wiki/Ganglia
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/gmond --foreground --pid-file /var/run/gmond.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/modules/ganglia/manifests/monitor/service.pp 
b/modules/ganglia/manifests/monitor/service.pp
index 929d760..0aa25bc 100644
--- a/modules/ganglia/manifests/monitor/service.pp
+++ b/modules/ganglia/manifests/monitor/service.pp
@@ -19,6 +19,14 @@
             source => 
"puppet:///modules/${module_name}/systemd/ganglia-monitor-aggregator@.service",
             before => Service['ganglia-monitor'],
         }
+
+        file { '/etc/systemd/system/ganglia-monitor.service':
+            owner  => 'root',
+            group  => 'root',
+            mode   => '0444',
+            source => 
"puppet:///modules/${module_name}/systemd/ganglia-monitor.service",
+            before => Service['ganglia-monitor'],
+        }
     }
 
     service { 'ganglia-monitor':

-- 
To view, visit https://gerrit.wikimedia.org/r/311970
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I23731924393eadc1d1fe92c4432bbd3cb554a21d
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Dzahn <dz...@wikimedia.org>
Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org>
Gerrit-Reviewer: Muehlenhoff <mmuhlenh...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to