diff options
Diffstat (limited to 'kubernetes/appc')
5 files changed, 40 insertions, 28 deletions
diff --git a/kubernetes/appc/charts/appc-ansible-server/values.yaml b/kubernetes/appc/charts/appc-ansible-server/values.yaml index 1fb191f249..93d4c56e27 100644 --- a/kubernetes/appc/charts/appc-ansible-server/values.yaml +++ b/kubernetes/appc/charts/appc-ansible-server/values.yaml @@ -29,7 +29,7 @@ flavor: small # application image repository: nexus3.onap.org:10001 -image: onap/sdnc-ansible-server-image:1.4.1 +image: onap/ccsdk-ansible-server-image:0.3.2 pullPolicy: Always # flag to enable debugging - application support required diff --git a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh index 705f3effb5..6a36fdf37b 100755 --- a/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh +++ b/kubernetes/appc/resources/config/appc/opt/onap/appc/bin/startODL.sh @@ -56,28 +56,11 @@ SLEEP_TIME=${SLEEP_TIME:-120} MYSQL_PASSWD=${MYSQL_PASSWD:-{{.Values.config.mariadbRootPassword}}} ENABLE_ODL_CLUSTER=${ENABLE_ODL_CLUSTER:-false} ENABLE_AAF=${ENABLE_AAF:-true} +DBINIT_DIR=${DBINIT_DIR:-/opt/opendaylight/current/daexim} appcInstallStartTime=$(date +%s) # -# Adding the DMAAP_TOPIC_ENV variable into APPC-ASDC-LISTENER properties -# -DMAAP_TOPIC_ENV=${DMAAP_TOPIC_ENV} - -if [ -z "$DMAAP_TOPIC_ENV" ] - then - echo "DMAAP_TOPIC_ENV shell variable is empty. Adding default value OS-ETE-DFW" - DMAAP_TOPIC_ENV="OS-ETE-DFW" - else - echo "DMAAP_TOPIC_ENV shell variable exists and it's $DMAAP_TOPIC_ENV" -fi - -echo "Adding a value to property appc.asdc.env in appc.properties for appc-asdc-listener feature" -echo "" >> $APPC_HOME/data/properties/appc.properties -echo "appc.asdc.env=$DMAAP_TOPIC_ENV" >> $APPC_HOME/data/properties/appc.properties -echo "" >> $APPC_HOME/data/properties/appc.properties - -# # Wait for database to init properly # echo "Waiting for mariadbgalera" @@ -88,14 +71,39 @@ do done echo -e "\nmariadbgalera ready" -if [ ! -f ${SDNC_HOME}/.installed ] +if [ ! -d ${DBINIT_DIR} ] then - echo "Installing SDNC database" - ${SDNC_HOME}/bin/installSdncDb.sh + mkdir -p ${DBINIT_DIR} +fi - echo "Installing APPC database" - ${APPC_HOME}/bin/installAppcDb.sh +if [ ! -f ${DBINIT_DIR}/.installed ] +then + sdnc_db_exists=$(mysql -h {{.Values.config.mariadbGaleraSVCName}}.{{.Release.Namespace}} -u root -p{{.Values.config.mariadbRootPassword}} mysql <<-END +show databases like 'sdnctl'; +END +) + if [ "x${sdnc_db_exists}" == "x" ] + then + echo "Installing SDNC database" + ${SDNC_HOME}/bin/installSdncDb.sh + fi + + appc_db_exists=$(mysql -h {{.Values.config.mariadbGaleraSVCName}}.{{.Release.Namespace}} -u root -p{{.Values.config.mariadbRootPassword}} mysql <<-END +show databases like 'appcctl'; +END +) + if [ "x${appc_db_exists}" == "x" ] + then + echo "Installing APPC database" + ${APPC_HOME}/bin/installAppcDb.sh + fi + echo "Installed at `date`" > ${DBINIT_DIR}/.installed +fi + + +if [ ! -f ${SDNC_HOME}/.installed ] +then echo "Installing ODL Host Key" ${SDNC_HOME}/bin/installOdlHostKey.sh diff --git a/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/appc.properties b/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/appc.properties index 8553fcda02..770142ad59 100644 --- a/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/appc.properties +++ b/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/appc.properties @@ -34,7 +34,7 @@ appc.demo.threads.poolsize.max=2 appc.demo.provider.user={{.Values.config.odlUser}} appc.demo.provider.pass={{.Values.config.odlPassword}} appc.demo.provider.url=http://localhost:8181/restconf/operations/appc-provider -appc.provider.vfodl.url=http://{{.Values.config.odlUser}}:{{.Values.config.odlPassword}}@{{.Values.service.name}}:{{.Values.service.externalPort}}/restconf/config/network-topology:network-topology/topology/topology-netconf/node/NODE_NAME/yang-ext:mount/sample-plugin:sample-plugin/pg-streams/ +appc.provider.vfodl.url=http://{{.Values.config.odlUser|urlquery}}:{{.Values.config.odlPassword|urlquery}}@{{.Values.service.name}}:{{.Values.service.externalPort}}/restconf/config/network-topology:network-topology/topology/topology-netconf/node/NODE_NAME/yang-ext:mount/sample-plugin:sample-plugin/pg-streams/ # The properties right below are needed to properly call the Master DG to serve demo purposes appc.service.logic.module.name=APPC @@ -128,3 +128,5 @@ appc.OAM.topic.write=testOAM appc.OAM.client.name=testOAM appc.OAM.provider.user={{.Values.config.odlUser}} appc.OAM.provider.pass={{.Values.config.odlPassword}} + +appc.asdc.env={{.Values.config.dmaapTopicEnv}} diff --git a/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/cadi.properties b/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/cadi.properties index 7ce85c388e..91ab8ff3ed 100644 --- a/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/cadi.properties +++ b/kubernetes/appc/resources/config/appc/opt/onap/appc/data/properties/cadi.properties @@ -20,6 +20,7 @@ #hostname=localhost cadi_loglevel=INFO +cadi_bath_convert=/opt/onap/appc/data/properties/bath_config.csv ############################################################ # Properties Generated by AT&T Certificate Manager diff --git a/kubernetes/appc/values.yaml b/kubernetes/appc/values.yaml index d6719c1e37..9c5a50110a 100644 --- a/kubernetes/appc/values.yaml +++ b/kubernetes/appc/values.yaml @@ -31,7 +31,7 @@ global: flavor: small # application image repository: nexus3.onap.org:10001 -image: onap/appc-image:1.4.0 +image: onap/appc-image:1.4.2-SNAPSHOT-latest pullPolicy: Always # flag to enable debugging - application support required @@ -51,9 +51,10 @@ config: enableClustering: false configDir: /opt/onap/appc/data/properties dmaapTopic: SUCCESS + dmaapTopicEnv: AUTO logstashServiceName: log-ls logstashPort: 5044 - odlPassword: demo123456! + odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U openStackType: OpenStackProvider openStackName: OpenStack openStackKeyStoneUrl: http://localhost:8181/apidoc/explorer/index.html @@ -61,7 +62,7 @@ config: openStackDomain: default openStackUserName: admin openStackEncryptedPassword: admin - odlUser: appc@appc.onap.org + odlUser: admin appc-ansible-server: service: |