Muehlenhoff has uploaded a new change for review.

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

Change subject: deployment_server: Daemonise redis when running on systemd
......................................................................

deployment_server: Daemonise redis when running on systemd

Otherwise the redis startup fails since the systemd unit uses
Type=forking.

Bug: T144578
Change-Id: I7d2b015d6c1aab9af65d999e0c884378266a3845
---
M modules/deployment/manifests/redis.pp
1 file changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/08/311108/1

diff --git a/modules/deployment/manifests/redis.pp 
b/modules/deployment/manifests/redis.pp
index 3b3d4a0..1ef8c85 100644
--- a/modules/deployment/manifests/redis.pp
+++ b/modules/deployment/manifests/redis.pp
@@ -3,12 +3,18 @@
 
 class deployment::redis($deployment_server) {
 
+    if $::initsystem == 'upstart' {
+        $daemonize_redis = false,
+    } else {
+        $daemonize_redis = true,
+    }
+
     if ($::fqdn != $deployment_server) {
         $deployment_ipv4 = ipresolve($deployment_server, 4)
         # Just a read-only slave for now
         redis::instance { 6379:
             settings => {
-                daemonize       => false,
+                daemonize       => $daemonize_redis,
                 slave_read_only => true,
                 slaveof         => "${deployment_ipv4} 6379",
                 bind            => '0.0.0.0',
@@ -17,7 +23,7 @@
     } else {
         redis::instance{ 6379:
             settings => {
-                daemonize => false,
+                daemonize => $daemonize_redis,
                 bind      => '0.0.0.0',
             }
         }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7d2b015d6c1aab9af65d999e0c884378266a3845
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>

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

Reply via email to