From 03f2362649b5bcf83d7e6e5359abf18b6810f16b Mon Sep 17 00:00:00 2001 From: piclose Date: Wed, 1 Feb 2017 16:18:30 +0100 Subject: Initial OpenECOMP MSO mso-config cookbook commit Change-Id: I57dfeb7fb8fceea14e1d1394f51009af141dd6a1 Signed-off-by: piclose --- attributes/topology.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 attributes/topology.rb (limited to 'attributes/topology.rb') 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" -- cgit 1.2.3-korg