Madhuvishy has submitted this change and it was merged.

Change subject: labstore: Set mailto address for secondary backups cron
......................................................................


labstore: Set mailto address for secondary backups cron

Bug: T144633
Change-Id: I755a9542272c47345d19311279485fcb40b74c57
---
M modules/labstore/manifests/device_backup.pp
1 file changed, 7 insertions(+), 8 deletions(-)

Approvals:
  Madhuvishy: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/labstore/manifests/device_backup.pp 
b/modules/labstore/manifests/device_backup.pp
index d71dcdf..cef0a08 100644
--- a/modules/labstore/manifests/device_backup.pp
+++ b/modules/labstore/manifests/device_backup.pp
@@ -22,15 +22,14 @@
         'saturday'  => 6,
     }
 
-    # Establish what list these alerts should go to
-    # environment => 'MAILTO=labs-adm...@wikimedia.org'
     $block_sync='/usr/local/sbin/block_sync'
     cron { "block_sync-${remote_vg}/${remote_lv}=>${localdev}":
-        ensure  => 'present',
-        user    => 'root',
-        command => "${block_sync} ${remote_ip} ${remote_vg} ${remote_lv} 
${remote_snapshot} ${localdev}",
-        weekday => $day[$weekday],
-        hour    => $hour,
-        minute  => $minute,
+        ensure      => 'present',
+        user        => 'root',
+        command     => "${block_sync} ${remote_ip} ${remote_vg} ${remote_lv} 
${remote_snapshot} ${localdev}",
+        weekday     => $day[$weekday],
+        hour        => $hour,
+        minute      => $minute,
+        environment => 'MAILTO=labs-ad...@lists.wikimedia.org'
     }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I755a9542272c47345d19311279485fcb40b74c57
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Madhuvishy <mviswanat...@wikimedia.org>
Gerrit-Reviewer: Madhuvishy <mviswanat...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to