Ottomata has uploaded a new change for review.

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


Change subject: $net_topology_script_path needs to be set before hadoop-core is 
rendered
......................................................................

$net_topology_script_path needs to be set before hadoop-core is rendered

Change-Id: Iab6d3a1dfe9cb00ec62765cf6cee7dc505376f47
---
M manifests/hadoop.pp
1 file changed, 13 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/cdh4 
refs/changes/31/96531/1

diff --git a/manifests/hadoop.pp b/manifests/hadoop.pp
index 114e716..dbce96c 100644
--- a/manifests/hadoop.pp
+++ b/manifests/hadoop.pp
@@ -152,6 +152,19 @@
         default => 'present',
     }
 
+    # Render net-topology.sh from $net_topology_script_template
+    # if it was given.
+    $net_topology_script_ensure = $net_topology_script_template ? {
+        undef   => 'absent',
+        default => 'present',
+    }
+    $net_topology_script_path = "${config_directory}/net-topology.sh"
+    file { $net_topology_script_path:
+        ensure  => $net_topology_script_ensure,
+        content => template($net_topology_script_template),
+        mode    => '0755',
+    }
+
     file { "${config_directory}/log4j.properties":
         content => template('cdh4/hadoop/log4j.properties.erb'),
     }
@@ -184,19 +197,6 @@
     file { "${config_directory}/yarn-env.sh":
         ensure  => $yarn_ensure,
         content => template('cdh4/hadoop/yarn-env.sh.erb'),
-    }
-
-    # Render net-topology.sh from $net_topology_script_template
-    # if it was given.
-    $net_topology_script_ensure = $net_topology_script_template ? {
-        undef   => 'absent',
-        default => 'present',
-    }
-    $net_topology_script_path = "${config_directory}/net-topology.sh"
-    file { $net_topology_script_path:
-        ensure  => $net_topology_script_ensure,
-        content => template($net_topology_script_template),
-        mode    => '0755',
     }
 
     # Render hadoop-metrics2.properties

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

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

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

Reply via email to