Dzahn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/282963
Change subject: rsync home directories for stat1001 upgrade
......................................................................
rsync home directories for stat1001 upgrade
temp. setup rsyncd on fluorine to copy home dirs from
stat1001 to upgrade that server and then copy data back
Bug:T76348
Change-Id: I44ddac9bdfb6776910f08fc83ab843b33fa39399
---
M manifests/role/statistics.pp
M manifests/site.pp
2 files changed, 27 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/63/282963/1
diff --git a/manifests/role/statistics.pp b/manifests/role/statistics.pp
index 6cca4bb..f17bb45 100644
--- a/manifests/role/statistics.pp
+++ b/manifests/role/statistics.pp
@@ -204,3 +204,29 @@
}
}
+
+
+# setup rsync to copy home dirs for server upgrade
+class role::statistics::migration {
+
+ $sourceip='10.64.21.101'
+
+ ferm::service { 'stat-migration-rysnc':
+ proto => 'tcp',
+ port => '873',
+ srange => "${sourceip}/32",
+ }
+
+ include rsync::server
+
+ file { [ '/a/stat1001', '/a/stat1001/home' ]:
+ ensure => 'directory',
+ }
+
+ rsync::server::module { 'home':
+ path => '/a/stat1001/home',
+ read_only => 'no',
+ hosts_allow => $sourceip,
+ }
+
+}
diff --git a/manifests/site.pp b/manifests/site.pp
index 2e1bf1c..07c19cb 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1023,6 +1023,7 @@
$cluster = 'misc'
include standard
+ include role::statistics::migration
class { 'role::logging::mediawiki':
monitor => false,
--
To view, visit https://gerrit.wikimedia.org/r/282963
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I44ddac9bdfb6776910f08fc83ab843b33fa39399
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dzahn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits