Madhuvishy has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/403837 )

Change subject: dumps_distribution: Set up initial NFS exports
......................................................................


dumps_distribution: Set up initial NFS exports

Bug: T181431
Change-Id: Ie8c0d8bda63f82b4b77db4ffcb20d48a4fd6467a
---
A modules/profile/files/dumps/distribution/nfs-exports
M modules/profile/manifests/dumps/distribution/nfs.pp
2 files changed, 20 insertions(+), 1 deletion(-)

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



diff --git a/modules/profile/files/dumps/distribution/nfs-exports 
b/modules/profile/files/dumps/distribution/nfs-exports
new file mode 100644
index 0000000..047d3d9
--- /dev/null
+++ b/modules/profile/files/dumps/distribution/nfs-exports
@@ -0,0 +1,10 @@
+#  THIS FILE IS MANAGED BY PUPPET
+#
+# Export dumps to Cloud VPS instances
+#
+# /etc/exports: the access control list for filesystems which may be exported
+#              to NFS clients.  See exports(5).
+#
+
+/srv/dumps/xmldatadumps        
10.68.0.0/16(ro,fsid=0,sec=sys,sync,subtree_check,root_squash,nocrossmnt)
+/srv/dumps/xmldatadumps/public 
10.68.0.0/16(ro,sec=sys,no_subtree_check,all_squash,nocrossmnt)
diff --git a/modules/profile/manifests/dumps/distribution/nfs.pp 
b/modules/profile/manifests/dumps/distribution/nfs.pp
index 0f3a8c3..9538534 100644
--- a/modules/profile/manifests/dumps/distribution/nfs.pp
+++ b/modules/profile/manifests/dumps/distribution/nfs.pp
@@ -29,9 +29,18 @@
         content => 'options lockd nlm_udpport=32768 nlm_tcpport=32769',
     }
 
+    file { '/etc/exports':
+        mode    => '0444',
+        owner   => 'root',
+        group   => 'root',
+        source  => 'puppet:///modules/profile/dumps/distribution/nfs-exports',
+        require => Package['nfs-kernel-server'],
+    }
+
     # Manage state manually
     service { 'nfs-kernel-server':
-        enable => false,
+        enable  => false,
+        require => Package['nfs-kernel-server'],
     }
 
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie8c0d8bda63f82b4b77db4ffcb20d48a4fd6467a
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Madhuvishy <[email protected]>
Gerrit-Reviewer: Madhuvishy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to