ArielGlenn has submitted this change and it was merged.

Change subject: set up static nfs lock manager ports for dataset hosts
......................................................................


set up static nfs lock manager ports for dataset hosts

Change-Id: I316d8d387c743492326a8e3bc8df41be16b5a0cf
---
M modules/dataset/manifests/nfs.pp
M modules/role/manifests/dataset/common.pp
2 files changed, 20 insertions(+), 0 deletions(-)

Approvals:
  ArielGlenn: Looks good to me, approved
  Muehlenhoff: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/modules/dataset/manifests/nfs.pp b/modules/dataset/manifests/nfs.pp
index 3749f09..2acf223 100644
--- a/modules/dataset/manifests/nfs.pp
+++ b/modules/dataset/manifests/nfs.pp
@@ -53,4 +53,12 @@
         description   => 'NFS',
         check_command => 'check_tcp!2049',
     }
+
+    file { '/etc/modprobe.d/nfs-lockd.conf':
+        ensure  => present,
+        owner   => 'root',
+        group   => 'root',
+        mode    => '0644',
+        content => 'options lockd nlm_udpport=32768 nlm_tcpport=32769',
+    }
 }
diff --git a/modules/role/manifests/dataset/common.pp 
b/modules/role/manifests/dataset/common.pp
index c2ab4b4..cce4209 100644
--- a/modules/role/manifests/dataset/common.pp
+++ b/modules/role/manifests/dataset/common.pp
@@ -25,4 +25,16 @@
         port   => '111',
         srange => '$PRODUCTION_NETWORKS',
     }
+
+    ferm::service { 'nfs_lockd_udp':
+        proto  => 'udp',
+        port   => '32768',
+        srange => '$PRODUCTION_NETWORKS',
+    }
+
+    ferm::service { 'nfs_lockd_tcp':
+        proto  => 'tcp',
+        port   => '32769',
+        srange => '$PRODUCTION_NETWORKS',
+    }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I316d8d387c743492326a8e3bc8df41be16b5a0cf
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: Muehlenhoff <mmuhlenh...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to