Filippo Giunchedi has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/390262 )

Change subject: prometheus: switch to systemd::service
......................................................................


prometheus: switch to systemd::service

Bug: T148637
Change-Id: I31cba3d78b4924825700711a31541ad9e695f99f
---
M modules/prometheus/manifests/redis_exporter.pp
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  jenkins-bot: Verified
  Filippo Giunchedi: Looks good to me, approved



diff --git a/modules/prometheus/manifests/redis_exporter.pp 
b/modules/prometheus/manifests/redis_exporter.pp
index 1c8c691..764d4c8 100644
--- a/modules/prometheus/manifests/redis_exporter.pp
+++ b/modules/prometheus/manifests/redis_exporter.pp
@@ -43,11 +43,11 @@
         group     => 'root',
         content   => "ARGS=\"${arguments}\"\nREDIS_PASSWORD=\"${password}\"",
         show_diff => false,
-        notify    => Systemd::Unit[$service_name],
+        notify    => Systemd::Service[$service_name],
     }
 
-    systemd::unit { $service_name:
-        ensure  => running,
+    systemd::service { $service_name:
+        ensure  => present,
         content => systemd_template('prometheus-redis-exporter@'),
         restart => true,
         require => Package['prometheus-redis-exporter'],

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I31cba3d78b4924825700711a31541ad9e695f99f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to