BBlack has uploaded a new change for review.

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

Change subject: upload storage: no restart cron w/ experiment
......................................................................

upload storage: no restart cron w/ experiment

Bug: T145661

Change-Id: I9551d542bea3c1e21cdeac8d01a5c807291eaf30
---
M modules/role/manifests/cache/upload.pp
1 file changed, 13 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/15/311615/1

diff --git a/modules/role/manifests/cache/upload.pp 
b/modules/role/manifests/cache/upload.pp
index c704875..59879c2 100644
--- a/modules/role/manifests/cache/upload.pp
+++ b/modules/role/manifests/cache/upload.pp
@@ -162,12 +162,19 @@
         $be_restart_m = $times['minute']
         $be_restart_d = $times['weekday']
 
-        file { '/etc/cron.d/varnish-backend-restart':
-            mode    => '0444',
-            owner   => 'root',
-            group   => 'root',
-            content => template('varnish/varnish-backend-restart.cron.erb'),
-            require => File['/usr/local/sbin/varnish-backend-restart'],
+        if $upload_storage_experiment {
+            file { '/etc/cron.d/varnish-backend-restart':
+                ensure => absent,
+            }
+        }
+        else {
+            file { '/etc/cron.d/varnish-backend-restart':
+                mode    => '0444',
+                owner   => 'root',
+                group   => 'root',
+                content => 
template('varnish/varnish-backend-restart.cron.erb'),
+                require => File['/usr/local/sbin/varnish-backend-restart'],
+            }
         }
     }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9551d542bea3c1e21cdeac8d01a5c807291eaf30
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <bbl...@wikimedia.org>

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

Reply via email to