Ottomata has uploaded a new change for review.

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


Change subject: Allowing configuration of namenode_hostname via 
$:hadoop_namenode global variable in labs role
......................................................................

Allowing configuration of namenode_hostname via $:hadoop_namenode global 
variable in labs role

Change-Id: I47a4fb210c8b59b6c87f39b257ebb4b21cef5058
---
M manifests/role/analytics/hadoop.pp
1 file changed, 10 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/97/72997/1

diff --git a/manifests/role/analytics/hadoop.pp 
b/manifests/role/analytics/hadoop.pp
index 4fffff1..7339622 100644
--- a/manifests/role/analytics/hadoop.pp
+++ b/manifests/role/analytics/hadoop.pp
@@ -110,12 +110,20 @@
 
 # == Class role::analytics::hadoop::labs
 # Common hadoop configs for the labs Kraken cluster
+# namenode_hostname is configurable via the 
+# hadoop_namenode global variable, and defaults to
+# this nodes $::fqdn.
 #
 class role::analytics::hadoop::labs {
-    $namenode_hostname        = 'kraken0.pmtpa.wmflabs'
+    # if the globa
+    $namenode_hostname = $::hadoop_namenode ? {
+        undef       => $::fqdn,
+        default     => "${::hadoop_namenode}.${domain}",
+    }
+
     $hadoop_name_directory    = '/var/lib/hadoop/name'
 
-    # We don't have to create any partions in hive, so it
+    # We don't have to create any partions in labs, so it
     # is unlikely that /var/lib/hadoop will be created manually.
     # Ensure it exists.
     file { '/var/lib/hadoop':

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I47a4fb210c8b59b6c87f39b257ebb4b21cef5058
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>

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

Reply via email to