Giuseppe Lavagetto has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/250682

Change subject: cassandra: do not manage the service via puppet
......................................................................

cassandra: do not manage the service via puppet

Do not manage the cassandra service unit we install via puppet; let it
be manually started. We will still monitor the cassandra instance, so if
no one starts it, it will soon fire up an alert.

Bug: T103134
Change-Id: I40f932d44348bba19c1e18b215b245c47e003f5f
---
M modules/cassandra/manifests/instance.pp
1 file changed, 7 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/82/250682/1

diff --git a/modules/cassandra/manifests/instance.pp 
b/modules/cassandra/manifests/instance.pp
index 0006c50..54b292b 100644
--- a/modules/cassandra/manifests/instance.pp
+++ b/modules/cassandra/manifests/instance.pp
@@ -206,11 +206,12 @@
     }
 
     base::service_unit { $service_name:
-        ensure        => present,
-        template_name => 'cassandra',
-        systemd       => true,
-        refresh       => false,
-        require       => [
+        ensure          => present,
+        template_name   => 'cassandra',
+        systemd         => true,
+        declare_service => false,
+        refresh         => false,
+        require         => [
             File[$data_file_directories],
             File["${config_directory}/cassandra-env.sh"],
             File["${config_directory}/cassandra.yaml"],
@@ -219,7 +220,7 @@
     }
 
     nrpe::monitor_systemd_unit_state { $service_name:
-        require => Service[$service_name],
+        require => Base::Service_unit[$service_name],
     }
 
     # CQL query interface monitoring (T93886)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40f932d44348bba19c1e18b215b245c47e003f5f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>

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

Reply via email to