Dzahn has submitted this change and it was merged.
Change subject: mailman: rm sodium remnants, hardcoded IP
......................................................................
mailman: rm sodium remnants, hardcoded IP
Removing the last hits for "sodium" across the repo.
Making that IP for migration configurable.
This class can still be useful for the next migration.
Change-Id: I9d03de01abcc4af15a52227ac4aceb678e952a06
---
M manifests/role/lists.pp
1 file changed, 9 insertions(+), 7 deletions(-)
Approvals:
jenkins-bot: Verified
Dzahn: Looks good to me, approved
diff --git a/manifests/role/lists.pp b/manifests/role/lists.pp
index 7fcccae..79d3f99 100644
--- a/manifests/role/lists.pp
+++ b/manifests/role/lists.pp
@@ -168,15 +168,17 @@
class role::lists::migration {
+ $sourceip='208.80.154.61'
+
ferm::service { 'mailman-http':
proto => 'tcp',
port => '80',
}
- ferm::service { 'sodium-rysnc':
+ ferm::service { 'mailman-migration-rysnc':
proto => 'tcp',
port => '873',
- srange => '208.80.154.61/32',
+ srange => "${sourceip}/32",
}
include rsync::server
@@ -184,31 +186,31 @@
rsync::server::module { 'lists':
path => '/var/lib/mailman/lists',
read_only => 'no',
- hosts_allow => '208.80.154.61',
+ hosts_allow => $sourceip,
}
rsync::server::module { 'archives':
path => '/var/lib/mailman/archives',
read_only => 'no',
- hosts_allow => '208.80.154.61',
+ hosts_allow => $sourceip,
}
rsync::server::module { 'data':
path => '/var/lib/mailman/data',
read_only => 'no',
- hosts_allow => '208.80.154.61',
+ hosts_allow => $sourceip,
}
rsync::server::module { 'qfiles':
path => '/var/lib/mailman/qfiles',
read_only => 'no',
- hosts_allow => '208.80.154.61',
+ hosts_allow => $sourceip,
}
rsync::server::module { 'exim':
path => '/var/spool/exim4',
read_only => 'no',
- hosts_allow => '208.80.154.61',
+ hosts_allow => $sourceip,
}
package { 'mailman':
--
To view, visit https://gerrit.wikimedia.org/r/244514
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9d03de01abcc4af15a52227ac4aceb678e952a06
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: John F. Lewis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits