aboutsummaryrefslogtreecommitdiffstats
path: root/attributes/topology.rb
diff options
context:
space:
mode:
Diffstat (limited to 'attributes/topology.rb')
-rw-r--r--attributes/topology.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/attributes/topology.rb b/attributes/topology.rb
new file mode 100644
index 0000000..72df8ba
--- /dev/null
+++ b/attributes/topology.rb
@@ -0,0 +1,17 @@
+require 'uri'
+######################
+# MSO Config Path
+##########
+node.default["mso-config"]["topology"]["apih-load-balancer"] = URI.join(node["mso-bpmn-urn-config"]["adaptersDbEndpoint"], "/").to_s
+node.default["mso-config"]["topology"]["jra-load-balancer"] = URI.join(node["mso-bpmn-urn-config"]["adaptersSdncEndpoint"], "/").to_s
+node.default["mso-config"]["topology"]["camunda-load-balancer"] = URI.join(node["mso-api-handler-infra-config"]["camundaURL"], "/").to_s
+
+node.default["mso-config"]["topology"]["site-name"] = node.chef_environment
+node.default["mso-config"]["topology"]["server-port"] = "8080"
+node.default["mso-config"]["topology"]["ssl-enable"] = "false"
+
+node.default["mso-config"]["topology"]["apih-healthcheck-urn"] = "/ecomp/mso/infra/healthcheck,/asdc/healthcheck,/dbadapters/healthcheck"
+node.default["mso-config"]["topology"]["jra-healthcheck-urn"] = "/networks/rest/healthcheck,/adapters/rest/healthcheck,/vnfs/rest/healthcheck,/tenants/rest/healthcheck"
+node.default["mso-config"]["topology"]["camunda-healthcheck-urn"] = "/mso/healthcheck"
+node.default["mso-config"]["topology"]["apih-nodehealthcheck-urn"] = "/ecomp/mso/infra/nodehealthcheck"
+node.default["mso-config"]["topology"]["jra-nodehealthcheck-urn"] = "/adapters/rest/nodehealthcheck"