Ema has uploaded a new change for review.

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

Change subject: Do not run varnishlog on Varnish 3
......................................................................

Do not run varnishlog on Varnish 3

The varnishlog service in Varnish 3 writes lots of data to
/var/log/varnish/varnish.log without rotating such file properly.

Make sure varnishlog is not running as we don't use the file anyways.

Bug: T135700
Change-Id: I33bb37419262c780daf4ec7296e9848f44c5642e
---
M modules/varnish/manifests/logging.pp
1 file changed, 8 insertions(+), 0 deletions(-)


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

diff --git a/modules/varnish/manifests/logging.pp 
b/modules/varnish/manifests/logging.pp
index 93a9dc6..27f3d8e 100644
--- a/modules/varnish/manifests/logging.pp
+++ b/modules/varnish/manifests/logging.pp
@@ -36,4 +36,12 @@
             nrpe_command => "/usr/lib/nagios/plugins/check_procs -c 1:1 -a 
varnishncsa-${name}.pid -u varnishlog",
         }
     }
+
+    # Varnish 3: make sure varnishlog is not running. T135700
+    if (!hiera('varnish_version4', false)) {
+        service { 'varnishlog':
+            ensure  => stopped,
+            require => Package['varnish'],
+        }
+    }
 }

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

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

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

Reply via email to