Madhuvishy has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/403767 )
Change subject: WIP: nfsclient: Setup dumps mounts from new servers
......................................................................
WIP: nfsclient: Setup dumps mounts from new servers
This patch is just a proof of concept that I'm
using to locally test these changes in the
testlabs project.
Bug: T171540
Change-Id: Ifa51ecfe05a360cf9a4560e49d6d386edceba1d2
---
M modules/role/manifests/labs/nfsclient.pp
1 file changed, 33 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/67/403767/1
diff --git a/modules/role/manifests/labs/nfsclient.pp
b/modules/role/manifests/labs/nfsclient.pp
index 28cfcc9..553a13d 100644
--- a/modules/role/manifests/labs/nfsclient.pp
+++ b/modules/role/manifests/labs/nfsclient.pp
@@ -139,4 +139,37 @@
require => Labstore::Nfs_mount['scratch-on-labstore1003'],
}
}
+
+ if $::labsproject == 'testlabs' {
+
+ labstore::nfs_mount { 'dumps-on-labstore1006':
+ mount_name => 'dumps',
+ project => $::labsproject,
+ options => ['ro', 'soft', 'timeo=300', 'retrans=3'],
+ mount_path => '/mnt/nfs/labstore1006-dumps',
+ share_path => '/public',
+ server => 'labstore1006.wikimedia.org',
+ lookupcache => $lookupcache,
+ }
+
+ labstore::nfs_mount { 'dumps-on-labstore1007':
+ mount_name => 'dumps',
+ project => $::labsproject,
+ options => ['ro', 'soft', 'timeo=300', 'retrans=3'],
+ mount_path => '/mnt/nfs/labstore1007-dumps',
+ share_path => '/public',
+ server => 'labstore1007.wikimedia.org',
+ lookupcache => $lookupcache,
+ }
+
+ if mount_nfs_volume($::labsproject, 'dumps') {
+ file { '/public/newdumps':
+ ensure => 'link',
+ force => true,
+ target => '/mnt/nfs/labstore1006-dumps',
+ require => Labstore::Nfs_mount['dumps-on-labstore1006'],
+ }
+ }
+ }
+
}
--
To view, visit https://gerrit.wikimedia.org/r/403767
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifa51ecfe05a360cf9a4560e49d6d386edceba1d2
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Madhuvishy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits