summaryrefslogtreecommitdiffstats
path: root/tca-cdap-container
diff options
context:
space:
mode:
Diffstat (limited to 'tca-cdap-container')
-rwxr-xr-xtca-cdap-container/restart.sh5
-rw-r--r--tca-cdap-container/tca_app_preferences.json2
2 files changed, 4 insertions, 3 deletions
diff --git a/tca-cdap-container/restart.sh b/tca-cdap-container/restart.sh
index 95a41d2..32c920e 100755
--- a/tca-cdap-container/restart.sh
+++ b/tca-cdap-container/restart.sh
@@ -48,7 +48,8 @@ CBS_PORT=$(curl -s "${CONSUL_HOST}:${CONSUL_PORT}/v1/catalog/service/${CBS_SERVI
CBS_HOST=${CBS_HOST:-config_binding_service}
CBS_PORT=${CBS_PORT:-10000}
-MY_NAME=${SERVICE_NAME:-tca}
+#Changing to HOSTNAME parameter for consistency with k8s deploy
+MY_NAME=${HOSTNAME:-tca}
echo "TCA environment: I am ${MY_NAME}, consul at ${CONSUL_HOST}:${CONSUL_PORT}, CBS at ${CBS_HOST}:${CBS_PORT}, service name ${CBS_SERVICE_NAME}"
@@ -141,7 +142,7 @@ function tca_status {
function tca_poll_policy {
- MY_NAME=${SERVICE_NAME:-tca}
+ MY_NAME=${HOSTNAME:-tca}
URL1="${CBS_HOST}:${CBS_PORT}/service_component/${MY_NAME}"
URL2="$URL1:preferences"
diff --git a/tca-cdap-container/tca_app_preferences.json b/tca-cdap-container/tca_app_preferences.json
index 76fa8c2..a2c3bf7 100644
--- a/tca-cdap-container/tca_app_preferences.json
+++ b/tca-cdap-container/tca_app_preferences.json
@@ -7,7 +7,7 @@
"aaiEnrichmentUserPassword": "DCAE",
"aaiVMEnrichmentAPIPath": "/aai/v11/search/nodes-query",
"aaiVNFEnrichmentAPIPath": "/aai/v11/network/generic-vnfs/generic-vnf",
- "enableAAIEnrichment": "false",
+ "enableAAIEnrichment": "true",
"enableAlertCEFFormat": "false",
"enableRedisCaching": "{{REDISCACHING}}",
"redisHosts": "{{REDISHOSTPORT}}",