diff options
author | Alex Shatov <alexs@att.com> | 2018-09-20 15:15:45 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2018-09-20 15:15:45 -0400 |
commit | 209f8239c17c437cd15518ae4c111af4147a6a64 (patch) | |
tree | b347f981de960b3f1d2de7566a3223f72d2efd1e /run_policy.sh | |
parent | 2d0b15c1bfc707e37447d4b64686285c1e23c533 (diff) |
4.4.0 policy-handler - configurable consul-url4.4.03.0.1-ONAP3.0.0-ONAPcasablanca
- made consul-url configurable thru env var or local config
consul url is taken from env var $CONSUL_URL
if not provided, then from consul_url in etc/config.json
if not provided, then from hardcoded value of http://consul:8500
- per request from convergence team
- needed to avoid the collision between two consuls provided by
ONAP/OOM/DCAE and cloudify ver >= 4.x
Change-Id: Ic702c872bda3d851842ec41085480a9df200cbde
Signed-off-by: Alex Shatov <alexs@att.com>
Issue-ID: DCAEGEN2-822
Diffstat (limited to 'run_policy.sh')
-rw-r--r-- | run_policy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/run_policy.sh b/run_policy.sh index 3b804ec..72069f7 100644 --- a/run_policy.sh +++ b/run_policy.sh @@ -25,8 +25,9 @@ echo "---------------------------------------------" STARTED=$(date +%Y-%m-%d_%T.%N) echo "${STARTED}: running ${BASH_SOURCE[0]}" echo "APP_VER =" $(python setup.py --version) -echo "HOSTNAME =" ${HOSTNAME} -(uname -a; echo "/etc/hosts"; cat /etc/hosts; pwd; openssl version -a) +echo "HOSTNAME =${HOSTNAME}" +echo "CONSUL_URL =${CONSUL_URL}" +(pwd; uname -a; echo "/etc/hosts"; cat /etc/hosts; openssl version -a) python -m policyhandler & PID=$! |