diff options
author | Schmalzried, Terry (ts862m) <ts862m@att.com> | 2020-08-21 15:59:22 -0400 |
---|---|---|
committer | Schmalzried, Terry (ts862m) <ts862m@att.com> | 2020-08-27 11:08:13 -0400 |
commit | 15b4979453ac9e85dc8e03d30d7ca440179dfc73 (patch) | |
tree | 35c61bd7fdfb20120cac7daadc62b75494c4a01a /cm-container/scripts/load-plugins.sh | |
parent | 33b1137c1766a57aa1cb7e77e51c0593c776ef56 (diff) |
Set Cloudify password3.2.0
Cloudify pod updates for sourcing password from CMPASS environment variable.
Issue-ID: DCAEGEN2-1975
Change-Id: I5f297af9ad92389d0901eee463ea175751853838
Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
Diffstat (limited to 'cm-container/scripts/load-plugins.sh')
-rwxr-xr-x | cm-container/scripts/load-plugins.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cm-container/scripts/load-plugins.sh b/cm-container/scripts/load-plugins.sh index f4d1f66..5a342dd 100755 --- a/cm-container/scripts/load-plugins.sh +++ b/cm-container/scripts/load-plugins.sh @@ -25,8 +25,10 @@ CMADDR=${CMADDR:-dcae-cloudify-manager} CMPROTO=${CMPROTO:-https} CMPORT=${CMPORT:-443} -# Password is currently fixed at the default -# Eventually the password will be passed in as an environment variable +# Expect Cloudify password to be in file mounted from Kubernetes secret, +# but allow overriding by CMPASS environment variable, +# and if not provided, use the default +CMPASS=${CMPASS:-$(cat /opt/onap/cm-secrets/password 2>/dev/null)} CMPASS=${CMPASS:-admin} # Set up additional parameters for using HTTPS @@ -100,4 +102,4 @@ then touch ${PLUGINS_LOADED} else echo "Plugins already loaded" -fi
\ No newline at end of file +fi |