Update DCAE BE and FE configuration 07/45407/2
authorAreli, Fuss (af732p) <af732p@att.com>
Tue, 1 May 2018 09:11:06 +0000 (12:11 +0300)
committerMichael Lando <ml636r@att.com>
Tue, 1 May 2018 13:13:29 +0000 (13:13 +0000)
Update DCAE BE and FE configuration

Change-Id: I6214abfddc1e7916750553881f6a51775c102324
Issue-ID: SDC-1282
Signed-off-by: Areli, Fuss (af732p) <af732p@att.com>
catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/attributes/default.rb
catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb
catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/templates/default/BE-configuration.yaml.erb
catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/attributes/default.rb
catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/recipes/FE_2_setup_configuration.rb
catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb
catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-plugins-configuration.yaml.erb
sdc-os-chef/environments/Template.json

index 347ecf5..624ec83 100644 (file)
@@ -8,3 +8,8 @@ default['cassandra'][:truststore_password] = "Aa123456"
 default['jetty'][:keystore_pwd] = "OBF:1cp61iuj194s194u194w194y1is31cok"
 default['jetty'][:keymanager_pwd] = "OBF:1cp61iuj194s194u194w194y1is31cok"
 default['jetty'][:truststore_pwd] = "OBF:1cp61iuj194s194u194w194y1is31cok"
+
+#Reserved for DCAE backend
+default['DCAE']['BE'][:http_port] = 8082
+default['DCAE']['BE'][:https_port] = 8444
+default['DCAE_BE_VIP'] = "dcaed-be"
\ No newline at end of file
index 2ba8980..8a44bc7 100644 (file)
@@ -47,7 +47,8 @@ template "catalog-be-config" do
       :cassandra_pwd          => node['cassandra'][:cassandra_password],
       :cassandra_usr          => node['cassandra'][:cassandra_user],
       :cassandra_truststore_password => node['cassandra'][:truststore_password],
-      :cassandra_ssl_enabled => "#{ENV['cassandra_ssl_enabled']}"
+      :cassandra_ssl_enabled  => "#{ENV['cassandra_ssl_enabled']}",
+      :dcae_fe_vip            => default['DCAE_FE_VIP']
    })
 end
 
index 0d6d26d..4ee5c70 100644 (file)
@@ -565,17 +565,16 @@ onboarding:
     healthCheckUri: "/onboarding-api/v1.0/healthcheck"
 
 dcae:
+    host: <%= @dcae_be_vip %>
     <% if node[:disableHttp] -%>
     protocol: https
-    host: <%= @catalog_ip %>
-    port: <%= node['BE'][:https_port] %> 
+    port: <%= node['DCAE']['BE'][:https_port] %>
     <% else %>
     protocol: http
-    host: <%= @catalog_ip %>
-    port: <%= node['BE'][:http_port] %> 
-    <% end -%>  
+    port: <%= node['DCAE']['BE'][:http_port] %>
+    <% end -%>
     
-    healthCheckUri: "/dcae/healthCheck"
+    healthCheckUri: "/dcaed/healthCheck"
 
 # #GSS IDNS
 switchoverDetector:
index 272a116..fb4166b 100644 (file)
@@ -7,3 +7,8 @@ default['disableHttp'] = true
 default['jetty'][:keystore_pwd] = "OBF:1cp61iuj194s194u194w194y1is31cok"
 default['jetty'][:keymanager_pwd] = "OBF:1cp61iuj194s194u194w194y1is31cok"
 default['jetty'][:truststore_pwd] = "OBF:1cp61iuj194s194u194w194y1is31cok"
+
+#Reserved for DCAE backend
+default['DCAE']['FE'][:http_port] = 8183
+default['DCAE']['FE'][:https_port] = 9444
+default['DCAE_FE_VIP'] = "dcaed-fe"
\ No newline at end of file
index 2f747c3..0cb0972 100644 (file)
@@ -9,7 +9,8 @@ template "catalog-fe-config" do
       :be_host_ip   => node['Nodes']['BE'],
       :kb_host_ip   => node['Nodes']['KB'],
       :catalog_port => node['BE'][:http_port],
-      :ssl_port     => node['BE'][:https_port]
+      :ssl_port     => node['BE'][:https_port],
+      :dcae_fe_vip  => node['DCAE_FE_VIP']
    })
 end
 
index b436870..d14a73a 100644 (file)
@@ -51,15 +51,15 @@ onboarding:
     <% end -%>
 
 dcae:
-    host: <%= @fe_host_ip %>
+    host: <%= @dcae_fe_vip %>
     <% if node[:disableHttp] -%>
     protocol: https
-    port: <%= node['FE'][:https_port] %> 
+    port: <%= node['DCAE']['FE'][:https_port] %>
     <% else %>
     protocol: http
-    port: <%= node['FE'][:http_port] %> 
+    port: <%= node['DCAE']['FE'][:http_port] %>
     <% end -%>
-    healthCheckUri: "/dcae/healthCheck"
+    healthCheckUri: "/dcaed/healthCheck"
 
 identificationHeaderFields: 
    -
index 0da7973..994241d 100644 (file)
@@ -2,7 +2,7 @@ pluginsList:
    - pluginId: DCAE
      pluginDiscoveryUrl: <%= @dcae_discovery_url %>
      pluginSourceUrl: <%= @dcae_source_url %>
-     pluginStateUrl: "dcae"
+     pluginStateUrl: "dcaed"
      pluginDisplayOptions:
         context:
             displayName: "Monitoring"
index dae0860..b6760cc 100644 (file)
@@ -15,6 +15,8 @@
         "FE_VIP": "yyy",
         "ES_VIP": "yyy",
         "KB_VIP": "yyy",
+        "DCAE_BE_VIP": "yyy",
+        "DCAE_FE_VIP": "yyy",
         "interfaces": {
             "application": "eth0",
             "private": "eth1"