aboutsummaryrefslogtreecommitdiffstats
path: root/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/cluster.json.erb
diff options
context:
space:
mode:
Diffstat (limited to 'framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/cluster.json.erb')
-rw-r--r--framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/cluster.json.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/cluster.json.erb b/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/cluster.json.erb
new file mode 100644
index 00000000..7ca41733
--- /dev/null
+++ b/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/cluster.json.erb
@@ -0,0 +1,20 @@
+{"ipPrefix": "192.168.0.*",
+ "nodes": [
+ <% index = 1 -%>
+ <%- @manager_ip.each do |ip| -%>
+ <%- if index == @manager_ip.size -%>
+ {
+ "ip": "<%= ip -%>",
+ "id": "<%= ip -%>",
+ "tcpPort": 9876
+ }
+ <%- else -%>
+ {
+ "ip": "<%= ip -%>",
+ "id": "<%= ip -%>",
+ "tcpPort": 9876
+ },
+ <%- end -%>
+ <%- index = index + 1 -%>
+ <%- end -%>
+]}