Filippo Giunchedi has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/62/390262/1
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: newchange
Gerrit-Change-Id: I31cba3d78b4924825700711a31541ad9e695f99f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits