Muehlenhoff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/240341

Change subject: Add ferm rules for Spark
......................................................................

Add ferm rules for Spark

Bug: T83597

Change-Id: Icadb64ca8ee994b81a55e21fabf295fa270b2992
---
M manifests/role/analytics/spark.pp
1 file changed, 30 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/41/240341/1

diff --git a/manifests/role/analytics/spark.pp 
b/manifests/role/analytics/spark.pp
index b7c66e6..2dabd88 100644
--- a/manifests/role/analytics/spark.pp
+++ b/manifests/role/analytics/spark.pp
@@ -28,9 +28,39 @@
 class role::analytics::spark::standalone::master {
     require role::analytics::spark::standalone
     include cdh::spark::master
+
+    ferm::service{ 'spark-master-web-ui':
+        proto  => 'tcp',
+        port   => '18080',
+        srange => '$ANALYTICS_NETWORKS',
+    }
+
+    ferm::service{ 'spark-master-rpc':
+        proto  => 'tcp',
+        port   => '7077',
+        srange => '$ANALYTICS_NETWORKS',
+    }
+
+    ferm::service{ 'spark-rest-server':
+        proto  => 'tcp',
+        port   => '6066',
+        srange => '$ANALYTICS_NETWORKS',
+    }
 }
 
 class role::analytics::spark::standalone::worker {
     require role::analytics::spark::standalone
     include cdh::spark::worker
+
+    ferm::service{ 'spark-worker-web-ui':
+        proto  => 'tcp',
+        port   => '18081',
+        srange => '$ANALYTICS_NETWORKS',
+    }
+
+    ferm::service{ 'spark-worker-rpc':
+        proto  => 'tcp',
+        port   => '7078',
+        srange => '$ANALYTICS_NETWORKS',
+    }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icadb64ca8ee994b81a55e21fabf295fa270b2992
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>

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

Reply via email to