[MediaWiki-commits] [Gerrit] exim: temp hack to stop exim when on fermium - change (operations/puppet)

2015-08-27 Thread Dzahn (Code Review)
Dzahn has submitted this change and it was merged.

Change subject: exim: temp hack to stop exim when on fermium
..


exim: temp hack to stop exim when on fermium

Add an ugly but temp. hack to ensure exim is NOT running
when on fermium but leave it unchanged on all other hosts (sodium).

This is to be able to apply the puppet role and test it for the migration
without having exim send out any emails.

Bug:T109925
Change-Id: I1e336990d6e836c8b3a4c5da3530eabfebbf57f5
---
M modules/exim4/manifests/init.pp
1 file changed, 8 insertions(+), 1 deletion(-)

Approvals:
  Rush: Looks good to me, but someone else must approve
  John F. Lewis: Looks good to me, but someone else must approve
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/exim4/manifests/init.pp b/modules/exim4/manifests/init.pp
index f1f043f..1e3e14e 100644
--- a/modules/exim4/manifests/init.pp
+++ b/modules/exim4/manifests/init.pp
@@ -37,8 +37,15 @@
 default => true,
 }
 
+# temp hack for migration, will be removed (T109925)
+if $::hostname == 'fermium' {
+$eximrunning = 'stopped'
+} else {
+$eximrunning = 'running'
+}
+
 service { 'exim4':
-ensure=> running,
+ensure=> $eximrunning,
 hasstatus => $servicestatus,
 require   => Package["exim4-daemon-${variant}"],
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1e336990d6e836c8b3a4c5da3530eabfebbf57f5
Gerrit-PatchSet: 5
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn 
Gerrit-Reviewer: Dzahn 
Gerrit-Reviewer: John F. Lewis 
Gerrit-Reviewer: Rush 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] exim: temp hack to stop exim when on fermium - change (operations/puppet)

2015-08-27 Thread Dzahn (Code Review)
Dzahn has uploaded a new change for review.

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

Change subject: exim: temp hack to stop exim when on fermium
..

exim: temp hack to stop exim when on fermium

Add an ugly but temp. hack to ensure exim is NOT running
when on fermium but leave it unchanged on all other hosts (sodium).

This is to be able to apply the puppet role and test it for the migration
without having exim send out any emails.

Bug:T109925
Change-Id: I1e336990d6e836c8b3a4c5da3530eabfebbf57f5
---
M modules/exim4/manifests/init.pp
1 file changed, 7 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/18/234318/1

diff --git a/modules/exim4/manifests/init.pp b/modules/exim4/manifests/init.pp
index f1f043f..8849f99 100644
--- a/modules/exim4/manifests/init.pp
+++ b/modules/exim4/manifests/init.pp
@@ -37,8 +37,14 @@
 default => true,
 }
 
+if $::hostname == 'fermium' {
+$eximrunning = 'stopped'
+} else {
+$eximrunning = 'running'
+}
+
 service { 'exim4':
-ensure=> running,
+ensure=> $eximrunning,
 hasstatus => $servicestatus,
 require   => Package["exim4-daemon-${variant}"],
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e336990d6e836c8b3a4c5da3530eabfebbf57f5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn 

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