summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorvarun gudisena <varuneshwar.gudisena@att.com>2018-10-24 18:24:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-24 18:24:33 +0000
commiteb1a7439bbbd282fe2ff4f76a82a7f337323996e (patch)
treec2b63d3e899704714feeb1179a696a6db7a6a881 /auth
parent2c45841ac4e403d896df49d9214d8ec56587003b (diff)
parenteccc9022dce35a561e12a071e45ac808b456e204 (diff)
Merge "remove Cass references"
Diffstat (limited to 'auth')
-rw-r--r--auth/docker/aaf.sh3
-rw-r--r--auth/docker/cass.props-e3
-rw-r--r--auth/docker/cass.props.init12
-rw-r--r--auth/docker/d.props.init7
-rw-r--r--auth/docker/drun.sh24
5 files changed, 12 insertions, 37 deletions
diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh
index f9cf1bc3..71197278 100644
--- a/auth/docker/aaf.sh
+++ b/auth/docker/aaf.sh
@@ -1,8 +1,5 @@
#!/bin/bash
. ./d.props
-if [ -e ./cass.props ]; then
- . ./cass.props
-fi
DOCKER=${DOCKER:=docker}
function run_it() {
diff --git a/auth/docker/cass.props-e b/auth/docker/cass.props-e
deleted file mode 100644
index fc9bab43..00000000
--- a/auth/docker/cass.props-e
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-CASS_HOST=cass.aaf.osaaf.org:<Cass IP>
diff --git a/auth/docker/cass.props.init b/auth/docker/cass.props.init
deleted file mode 100644
index 7f7258fa..00000000
--- a/auth/docker/cass.props.init
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-# Use for assigning to /etc/hosts, when DNS doesn't have Cassandra FQDN
-CASS_HOST=aaf_cass
-
-####
-# Detailed Cassandra Environmental Variables
-####
-# CASSANDRA_CLUSTER=<unsert means default, host from CASS_HOST above, or "localhost">
-# CASSANDRA_USER=<unset means default (cassandra)>
-# CASSANDRA_PASSWORD=<unset means default (cassandra)>
-# CASSANDRA_PORT=<unset means default (9042)>
diff --git a/auth/docker/d.props.init b/auth/docker/d.props.init
index 9a1903f9..b64ba1f0 100644
--- a/auth/docker/d.props.init
+++ b/auth/docker/d.props.init
@@ -30,3 +30,10 @@ AAF_SIGNER_P12=
AAF_SIGNER_PASSWORD=
AAF_SIGNER_ALIAS=
+# OPTIONALLY ADD THESE CASSANDRA PROPERTIES
+# CASS_HOST=
+# CASSANDRA_CLUSTER=
+# CASSANDRA_USER=
+# CASSANDRA_PASSWORD=
+# CASSANDRA_PORT=
+
diff --git a/auth/docker/drun.sh b/auth/docker/drun.sh
index c6914a09..ad1fb504 100644
--- a/auth/docker/drun.sh
+++ b/auth/docker/drun.sh
@@ -2,27 +2,8 @@
# Pull in Variables from d.props
. ./d.props
-# Only need Cassandra Link Info when initializing the container.
-if [ ! -e ./cass.props ]; then
- cp cass.props.init cass.props
-fi
-. ./cass.props
-
DOCKER=${DOCKER:=docker}
-CASS_IS_SET="$(grep '<Cass IP>' cass.props)"
-if [ -n "$CASS_IS_SET" ]; then
- CASS_IP="$($DOCKER container inspect aaf_cass | grep \"IPAddress\": -m 1 | cut -d '"' -f 4)"
- if [ -n "$CASS_IP" ]; then
- sed -i -e "s/\(^.*:\).*/\1$CASS_IP/" cass.props
- else
- echo "Set CASSASNDRA IP in cass.props"
- exit
- fi
-fi
-
-. ./cass.props
-
bash aaf.sh onap
if [ "$1" == "" ]; then
@@ -82,6 +63,11 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do
--env AAF_REGISTER_AS=${AAF_REGISTER_AS} \
--env LATITUDE=${LATITUDE} \
--env LONGITUDE=${LONGITUDE} \
+ --env CASS_HOST=${CASS_HOST} \
+ --env CASSANDRA_CLUSTER=${CASSANDRA_CLUSTER} \
+ --env CASSANDRA_USER=${CASSANDRA_USER} \
+ --env CASSANDRA_PASSWORD=${CASSANDRA_PASSWORD} \
+ --env CASSANDRA_PORT=${CASSANDRA_PORT} \
--publish $PORTMAP \
-v "aaf_config:$CONF_ROOT_DIR" \
${PREFIX}${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}