Filippo Giunchedi has uploaded a new change for review.

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

Change subject: ganglia_new: bandaid cleanup /tmp
......................................................................

ganglia_new: bandaid cleanup /tmp

cleanup via cron while the issue gets figured out

Bug: T97637
Change-Id: I76fce89f8028f1cd43640cc380c5a79a9a323912
---
M modules/ganglia_new/manifests/web.pp
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/59/207759/1

diff --git a/modules/ganglia_new/manifests/web.pp 
b/modules/ganglia_new/manifests/web.pp
index 0c6d726..d7c554e 100644
--- a/modules/ganglia_new/manifests/web.pp
+++ b/modules/ganglia_new/manifests/web.pp
@@ -37,4 +37,12 @@
         content => template('ganglia_new/conf_production.php.erb'),
         require => Package['ganglia-webfrontend'],
     }
+
+    # sometimes webfrontend leaves files behind, T97637
+    cron { 'ganglia_webfrontend_cleanup':
+        ensure  => 'present',
+        command => 'find /tmp -type f -iname "ganglia-graph*" -mmin +60 
-delete',
+        user    => 'www-data',
+        hour    => '*',
+    }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I76fce89f8028f1cd43640cc380c5a79a9a323912
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>

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

Reply via email to