aboutsummaryrefslogtreecommitdiffstats
path: root/installation/sdnc
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-02-22 11:20:18 -0500
committerDan Timoney <dtimoney@att.com>2021-02-22 13:56:52 -0500
commit38d8f5f82c952db34e139488dd7619f620ecc742 (patch)
tree546e24c91091dccca66180bf0e9c93a1b9ac4f4d /installation/sdnc
parent1e1fc55411b7569aae9f550046ca14e5db03d5cb (diff)
Remove embedded passwords
Updated properties files to use env variables instead of embedded default passwords. Change-Id: I7b5a796bbb5d386dda8cba47cbb977ec47838a11 Issue-ID: SDNC-1482 Signed-off-by: Dan Timoney <dtimoney@att.com> Former-commit-id: d0a86a8593f3832f11198e91c2343db6fad5a1a9
Diffstat (limited to 'installation/sdnc')
-rw-r--r--installation/sdnc/pom.xml2
-rwxr-xr-xinstallation/sdnc/src/main/scripts/startODL.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/installation/sdnc/pom.xml b/installation/sdnc/pom.xml
index be951d2d..5cc35d65 100644
--- a/installation/sdnc/pom.xml
+++ b/installation/sdnc/pom.xml
@@ -155,7 +155,7 @@
<alias>sdnc-container</alias>
<run>
<env>
- <ODL_ADMIN_PASSWORD>admin</ODL_ADMIN_PASSWORD>
+ <ODL_PASSWORD>admin</ODL_PASSWORD>
<MYSQL_ROOT_PASSWORD>itsASecret</MYSQL_ROOT_PASSWORD>
<MYSQL_USER>sdnctl</MYSQL_USER>
<MYSQL_PASSWORD>gamma</MYSQL_PASSWORD>
diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh
index 7a224877..bcf8893c 100755
--- a/installation/sdnc/src/main/scripts/startODL.sh
+++ b/installation/sdnc/src/main/scripts/startODL.sh
@@ -212,7 +212,7 @@ printf "Installing SDNC/R from startODL.sh script\n"
ODL_HOME=${ODL_HOME:-/opt/opendaylight/current}
ODL_FEATURES_BOOT_FILE=$ODL_HOME/etc/org.apache.karaf.features.cfg
-ODL_ADMIN_USERNAME=${ODL_ADMIN_USERNAME:-admin}
+ODL_USER=${ODL_USER:-admin}
ODL_REMOVEIDMDB=${ODL_REMOVEIDMDB:-true}
if $ODL_REMOVEIDMDB ; then
@@ -253,7 +253,7 @@ SDNR_NORTHBOUND=${SDNR_NORTHBOUND:-false}
SDNR_NORTHBOUND_BOOTFEATURES=${SDNR_NORTHBOUND_BOOTFEATURES:-sdnr-northbound-all}
NOTOK=1
#export for installCerts.py
-export ODL_ADMIN_PASSWORD ODL_ADMIN_USERNAME
+export ODL_PASSWORD ODL_USER
if $JDEBUG ; then
printf "Activate remote debugging\n"
@@ -326,8 +326,8 @@ if $SDNRINIT ; then
fi
# do not start container if ADMIN_PASSWORD is not set
-if [ -z "$ODL_ADMIN_PASSWORD" ]; then
- echo "ODL_ADMIN_PASSWORD is not set"
+if [ -z "$ODL_PASSWORD" ]; then
+ echo "ODL_PASSWORD is not set"
exit 1
fi