Ottomata has uploaded a new change for review.

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

Change subject: Send refinery dump emails to Joseph as well
......................................................................

Send refinery dump emails to Joseph as well

Change-Id: Ib25f329707ac8da4a9547f78f135633c82185f7e
---
M manifests/role/analytics/refinery.pp
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/90/212290/1

diff --git a/manifests/role/analytics/refinery.pp 
b/manifests/role/analytics/refinery.pp
index 1a7ca1b..cc43fab 100644
--- a/manifests/role/analytics/refinery.pp
+++ b/manifests/role/analytics/refinery.pp
@@ -168,13 +168,15 @@
     # I am not sure why this is not working.
     $hdfs_mount_point = '/mnt/hdfs'
 
+    $mail_to = 'o...@wikimedia.org,jg...@wikimedia.org,j...@wikimedia.org'
+
     # Since the 'stats' user is not in ldap, it is unnecessarily hard
     # to grant it access to the private data in hdfs. As discussed in
     #   https://gerrit.wikimedia.org/r/#/c/186254
     # the cron runs as hdfs instead.
     cron { 'refinery data check hdfs_mount':
         command     => 
"${::role::analytics::refinery::path}/bin/refinery-dump-status-webrequest-partitions
 --hdfs-mount ${hdfs_mount_point} --datasets webrequest,raw_webrequest --quiet",
-        environment => 'MAILTO=o...@wikimedia.org,jg...@wikimedia.org',
+        environment => "MAILTO=${$mail_to}",
         user        => 'hdfs',
         hour        => 10,
         minute      => 0,
@@ -182,7 +184,7 @@
 
     cron { 'refinery data check pagecounts':
         command     => 
"${::role::analytics::refinery::path}/bin/refinery-dump-status-webrequest-partitions
 --hdfs-mount ${hdfs_mount_point} --datasets 
pagecounts_all_sites,pagecounts_raw --quiet",
-        environment => 'MAILTO=o...@wikimedia.org,jg...@wikimedia.org',
+        environment => "MAILTO=${$mail_to}",
         user        => 'hdfs', # See comment in above cron
         hour        => 10,
         minute      => 5,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib25f329707ac8da4a9547f78f135633c82185f7e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <o...@wikimedia.org>

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

Reply via email to