Dzahn has uploaded a new change for review.

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

Change subject: bugzilla: disable cron jobs
......................................................................

bugzilla: disable cron jobs

because of the BZ -> phab migration,
turn off all the cron jobs so that people
don't get mail with stats anymore and related
things

Change-Id: I9990f715021ec5984338110723a4818d2292bce2
---
M modules/bugzilla/manifests/init.pp
M modules/bugzilla/manifests/logmail.pp
M modules/bugzilla/manifests/reporter.pp
3 files changed, 5 insertions(+), 4 deletions(-)


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

diff --git a/modules/bugzilla/manifests/init.pp 
b/modules/bugzilla/manifests/init.pp
index af05425..45e4198 100644
--- a/modules/bugzilla/manifests/init.pp
+++ b/modules/bugzilla/manifests/init.pp
@@ -117,7 +117,7 @@
     $whine = 'whine.pl'
 
     cron { 'bugzilla_whine':
-        ensure  => 'present',
+        ensure  => 'absent',
         command => "cd ${bz_path}; ./${whine}",
         user    => 'root',
         minute  => '15',
@@ -129,7 +129,7 @@
 
     # 1) get statistics for the day:
     cron { 'bugzilla_collectstats':
-        ensure  => 'present',
+        ensure  => 'absent',
         command => "cd ${bz_path}; ./${collectstats} > /dev/null 2>&1",
         user    => 'root',
         hour    => '0',
@@ -139,7 +139,7 @@
 
     # 2) on sunday, regenerates the whole statistics data
     cron { 'bugzilla_collectstats_regenerate':
-        ensure  => 'present',
+        ensure  => 'absent',
         command => "cd ${bz_path}; ./${collectstats} --regenerate > /dev/null 
2>&1",
         user    => root,
         hour    => 0,
diff --git a/modules/bugzilla/manifests/logmail.pp 
b/modules/bugzilla/manifests/logmail.pp
index 40e53a1..41808ab 100644
--- a/modules/bugzilla/manifests/logmail.pp
+++ b/modules/bugzilla/manifests/logmail.pp
@@ -39,6 +39,7 @@
     }
 
     cron { "bugzillacron_${title}":
+        ensure   => 'absent',
         command  => "${bz_path}/${script_name}",
         user     => $script_user,
         hour     => $hour,
diff --git a/modules/bugzilla/manifests/reporter.pp 
b/modules/bugzilla/manifests/reporter.pp
index 23c16fa..927d0f9 100644
--- a/modules/bugzilla/manifests/reporter.pp
+++ b/modules/bugzilla/manifests/reporter.pp
@@ -28,7 +28,7 @@
     }
 
     cron { 'bugzilla_reporter_cron':
-        ensure  => 'present',
+        ensure  => 'absent',
         command => "php -q /home/reporter/bugzilla_report.php | mail -s 
\"Bugzilla Weekly Report\" wikitec...@lists.wikimedia.org > /dev/null",
         user    => reporter,
         hour    => 3,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9990f715021ec5984338110723a4818d2292bce2
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <dz...@wikimedia.org>

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

Reply via email to