aboutsummaryrefslogtreecommitdiffstats
path: root/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/tablets.json.erb
diff options
context:
space:
mode:
Diffstat (limited to 'framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/tablets.json.erb')
-rw-r--r--framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/tablets.json.erb69
1 files changed, 69 insertions, 0 deletions
diff --git a/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/tablets.json.erb b/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/tablets.json.erb
new file mode 100644
index 00000000..de52967d
--- /dev/null
+++ b/framework/scripts/installer/fuel/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/templates/tablets.json.erb
@@ -0,0 +1,69 @@
+{
+ "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 -%>
+ ],
+ "partitions": {
+ <%- key = 1 -%>
+ <%- @manager_ip.each do |ip| -%>
+ <%- if key == @manager_ip.size -%>
+ "p<%= key -%>":[
+ <%- 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 -%>
+ ]
+ <%- key = key + 1 -%>
+ <%- else -%>
+ "p<%= key -%>":[
+ <%- 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 -%>
+ ],
+ <%- key = key + 1 -%>
+ <%- end -%>
+ <%- end -%>
+}
+}