| # prepare env for HTTPS if used |
| is_https=$(cat /root/chef-solo/environments/${ENVNAME}.json | \ |
| jq -cr '.default_attributes.disableHttp' | \ |
| tr '[:upper:]' '[:lower:]') |
| if [ "$is_https" = true ] ; then |
| SDC_FE_IP=$(cat /root/chef-solo/environments/${ENVNAME}.json | \ |
| jq -cr '.default_attributes.Nodes.FE') |
| SDC_FE_HOSTNAME=$(cat /root/chef-solo/environments/${ENVNAME}.json | \ |
| jq -cr '.override_attributes.FE.domain_name') |
| if ! grep -q "^[[:space:]]*${SDC_FE_IP}[[:space:]]" ; then |
| echo "${SDC_FE_IP}" "${SDC_FE_HOSTNAME}" >> /etc/hosts |
| chef-solo -c solo.rb -E ${ENVNAME} |
| echo "Startup failed !!!" |
| # Note that the output below is monitored in CSIT by |
| # sdc/sdc-os-chef/scripts/docker_run.sh |
| # If this text is changed, docker_run.sh check for sdc-api-tests docker |
| # startup must be adjusted accordingly! |
| echo "Startup completed successfully" |