summaryrefslogtreecommitdiffstats
path: root/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates
diff options
context:
space:
mode:
authorAvi Ziv <avi.ziv@amdocs.com>2018-03-15 13:21:44 +0200
committerMichael Lando <ml636r@att.com>2018-04-24 07:50:44 +0000
commitc175a0de2f05d37c1c774684318a525eb96bb59b (patch)
tree0c8bd736fdbcb512fefce93ec841fd3537336206 /catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates
parent08d85958f46d1de9aec9cf459632b5be040063be (diff)
Create on boarding docker
Add BE and Cassandra init docker images Change-Id: Id9d767c73fc946819cec821b4634ce650cbb22fd Issue-ID: SDC-781 Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates')
-rw-r--r--catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb26
-rw-r--r--catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-onboarding-configuration.yaml.erb6
-rw-r--r--catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb2
3 files changed, 18 insertions, 16 deletions
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb
index 1a245d24b5..b4368709c4 100644
--- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb
+++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-configuration.yaml.erb
@@ -32,15 +32,23 @@ healthCheckSocketTimeoutInMs: 5000
healthCheckIntervalInSeconds: 5
onboarding:
- host: <%= @fe_host_ip %>
+ hostFe: <%= @fe_host_ip %>
<% if node[:disableHttp] -%>
- protocol: https
- port: <%= node['FE'][:https_port] %>
+ protocolFe: https
+ portFe: <%= node['FE'][:https_port] %>
<% else %>
- protocol: http
- port: <%= node['FE'][:http_port] %>
+ protocolFe: http
+ portFe: <%= node['FE'][:http_port] %>
+ <% end -%>
+ healthCheckUriFe: "/onboarding/v1.0/healthcheck"
+ hostBe: <%= node['ONBOARDING_BE_VIP'] %>
+ <% if node[:disableHttp] -%>
+ protocolBe: https
+ portBe: <%= node['ONBOARDING_BE'][:https_port] %>
+ <% else %>
+ protocolBe: http
+ portBe: <%= node['ONBOARDING_BE'][:http_port] %>
<% end -%>
- healthCheckUri: "/onboarding/v1.0/healthcheck"
dcae:
host: <%= @fe_host_ip %>
@@ -53,12 +61,6 @@ dcae:
<% end -%>
healthCheckUri: "/dcae/healthCheck"
-dcae:
- protocol: http
- host: localhost
- port: 8181
- healthCheckUri: "/dcae/healthCheck"
-
identificationHeaderFields:
-
- &HTTP_IV_USER HTTP_IV_USER
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-onboarding-configuration.yaml.erb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-onboarding-configuration.yaml.erb
index 71ed876ee7..beb774b4a9 100644
--- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-onboarding-configuration.yaml.erb
+++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-onboarding-configuration.yaml.erb
@@ -1,9 +1,9 @@
notifications:
pollingIntervalMsec: 2000
selectionSize: 100
- beHost: <%= @catalog_ip %>
+ beHost: <%= node['ONBOARDING_BE_VIP'] %>
<% if node[:disableHttp] -%>
- beHttpPort: <%= node['BE'][:https_port] %>
+ beHttpPort: <%= node['ONBOARDING_BE'][:https_port] %>
<% else %>
- beHttpPort: <%= node['BE'][:http_port] %>
+ beHttpPort: <%= node['ONBOARDING_BE'][:http_port] %>
<% end -%> \ No newline at end of file
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb
index f721f9a694..d09880d825 100644
--- a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb
+++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/ready-probe.sh.erb
@@ -2,7 +2,7 @@
health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8181/sdc1/rest/healthCheck)
if [[ "$health_Check_http_code" -eq 200 ]]; then
- exit 200
+ exit 0
else
exit $health_Check_http_code
fi \ No newline at end of file