diff options
-rw-r--r-- | misc/dmaapbc | 27 | ||||
-rw-r--r-- | misc/dmaapbc.properties.tmpl | 21 | ||||
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | version.properties | 2 |
4 files changed, 33 insertions, 19 deletions
diff --git a/misc/dmaapbc b/misc/dmaapbc index cef472e..c36c5d5 100644 --- a/misc/dmaapbc +++ b/misc/dmaapbc @@ -31,8 +31,9 @@ PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/jdk/ export PATH CLASSPATH=`echo $APP_ROOT/etc $APP_ROOT/lib/*.jar | tr ' ' ':'` export CLASSPATH -CONFIGMAP_ROOT=/opt/app/config -CONTAINER_CONFIG=$CONFIGMAP_ROOT/conf +CONFIGMAP_ROOT=${CONFIGMAP_ROOT:-/opt/app/config/conf} +CONFIGMAP_PROPS=${CONFIGMAP_PROPS:-/opt/app/config/conf/dmaapbc.properties} +CONTAINER_CONFIG=$CONFIGMAP_ROOT/buscontroller.env MAIN=org.onap.dmaap.dbcapi.server.Main @@ -52,8 +53,8 @@ config() { fi if [ ! -f $CONTAINER_CONFIG ] then - echo "Expected env file $CONTAINER_CONFIG not found" - exit 1 + echo "WARNING: Expected env file $CONTAINER_CONFIG not found. Default behaviors in effect" + find $CONTAINER_ROOT -type f fi cd $APP_ROOT source $CONTAINER_CONFIG @@ -74,8 +75,20 @@ config() { $APP_ROOT/misc/cert-client-init.sh . misc/havecert.tmpl > etc/havecert chmod +x etc/havecert - . misc/dmaapbc.properties.tmpl > etc/dmaapbc.properties - . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties + + # These files might be better provided in kubernetes configmaps + # so if they are there, use them + if [ -f $CONFIGMAP_PROPS ] + then + PROPS=$CONFIGMAP_PROPS + else + PROPS=etc/dmaapbc.properties + . misc/dmaapbc.properties.tmpl > $PROPS + fi + if [ ! -f config/PolicyEngineApi.properties ] + then + . misc/PolicyEngineApi.properties.tmpl > config/PolicyEngineApi.properties + fi set +x } @@ -112,7 +125,7 @@ start() { # JVM flags #old line from Dockerfile...keep for reference only - FLAGS="-cp etc:lib/* -Dlog4j.configuration=etc/log4j.properties -Ddmaapbc.properties=etc/dmaapbc.properties -Dlogback.configurationFile=etc/logback.xml -Dhttps.protocols=TLSv1.2 -Dhttps.cipherSuites=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + FLAGS="-cp etc:lib/* -Dlog4j.configuration=etc/log4j.properties -DConfigFile=$PROPS -Dlogback.configurationFile=etc/logback.xml -Dhttps.protocols=TLSv1.2 -Dhttps.cipherSuites=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" #nohup java $FLAGS $MAIN </dev/null >/dev/null 2>&1 & nohup java $FLAGS $MAIN </dev/null & sleep 5 diff --git a/misc/dmaapbc.properties.tmpl b/misc/dmaapbc.properties.tmpl index 7214497..40ce8f5 100644 --- a/misc/dmaapbc.properties.tmpl +++ b/misc/dmaapbc.properties.tmpl @@ -114,7 +114,7 @@ MR.multisite: false # Value of the CNAME DNS entry which resolves to the primary central MR cluster (when there are more than one central clusters). # if there is only one MR cluster in an environment, set this to the DNS name for that cluster # -MR.CentralCname: ${DMAAPBC_MR_CNAME:-dmaap.onap} +MR.CentralCname: ${DMAAPBC_MR_CNAME:-message-router} # # MR Client Delete Level thoroughness: # 0 = don't delete @@ -127,7 +127,7 @@ MR.ClientDeleteLevel: 1 MR.TopicFactoryNS: org.onap.dcae.dmaap.topicFactory # # MR TopicMgr Role -MR.TopicMgrRole: org.onap.dmaapBC.TopicMgr +MR.TopicMgrRole: org.onap.dmaap-bc-topic-mgr.client # MR topic name style MR.topicStyle: FQTN_LEGACY_FORMAT @@ -142,13 +142,13 @@ MR.projectID: 23456 # The Role and credentials of the MirrorMaker Provisioner. This is used by DMaaP Bus Controller to pub to the provisioning topic # Not part of 1701 # -MM.ProvRole: ${DMAAPBC_MMPROV_ROLE:-org.onap.dmaapBC.MMprov.prov} -MM.ProvUserMechId: ${DMAAPBC_MMPROV_ID:-idNotSet@namespaceNotSet} -MM.ProvUserPwd: ${DMAAPBC_MMPROV_PWD:-pwdNotSet} +MM.ProvRole: ${DMAAPBC_MMPROV_ROLE:-org.onap.dmaap-bc-mm-prov.prov} +MM.ProvUserMechId: ${DMAAPBC_MMPROV_ID:-dmaap-bc-mm-prov@dmaap-bc-mm-prov.onap.org} +MM.ProvUserPwd: ${DMAAPBC_MMPROV_PWD:-demo123456!} # # The Role of the MirrorMaker Agent. This is used by MM to sub to provisioning topic # -MM.AgentRole: ${DMAAPBC_MMAGENT_ROLE:-org.onap.dmaapBC.MMagent.agent} +MM.AgentRole: ${DMAAPBC_MMAGENT_ROLE:-org.onap.dmaap-bc-mm-prov.agent} ################# # # path to cadi.properties @@ -157,6 +157,7 @@ cadi.properties: /opt/app/osaaf/local/org.onap.dmaap-bc.props ################# # AAF Properties: +UseAAF: ${DMAAPBC_USEAAF:-false} # # regarding password encryption: # In the dependencies that Maven retrieves (e.g., under dcae_dmaapbc/target/deps/ is a jar file cadi-core-version.jar. Generate the key file with: @@ -186,6 +187,9 @@ CredentialCodecKeyfile: ${DMAAPBC_CODEC_KEYFILE:-etc/LocalKey} # This allows for a plugin policy check, if needed #ApiPermission.Class: com.company.policy.DecisionPolicy +# Namespace for URI values for API used to create AAF permissions +# e.g. if ApiNamespace is X.Y..dmaapBC.api then for URI /topics we create an AAF perm X.Y..dmaapBC.api.topics +ApiNamespace: ${DMAAPBC_API_NAMESPACE:-org.onap.dmaap-bc.api} # # URL of AAF environment to use. # @@ -193,7 +197,7 @@ aaf.URL: ${DMAAPBC_AAF_URL:-https://aaf-onap-test.osaaf.org:8095} # # TopicMgr mechid@namespace # -aaf.TopicMgrUser: ${DMAAPBC_TOPICMGR_USER:-topic_mgr@dmaap-bc.onap.org} +aaf.TopicMgrUser: ${DMAAPBC_TOPICMGR_USER:-dmaap-bc-topic-mgr@dmaap-bc-topic-mgr.onap.org} # # TopicMgr password # @@ -208,9 +212,6 @@ aaf.AdminUser: ${DMAAPBC_ADMIN_USER:-aaf_admin@people.osaag.org} aaf.AdminPassword: ${DMAAPBC_ADMIN_PWD:-demo123456!} -# Namespace for URI values for API used to create AAF permissions -# e.g. if ApiNamespace is X.Y..dmaapBC.api then for URI /topics we create an AAF perm X.Y..dmaapBC.api.topics -ApiNamespace: ${DMAAPBC_API_NAMESPACE:-org.onap.dmaap-bc.api} # # endof AAF Properties ################# @@ -365,7 +365,7 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <jettyVersion>9.3.8.RC0</jettyVersion> <eelf.version>0.0.1</eelf.version> - <artifact.version>1.0.20</artifact.version> + <artifact.version>1.0.22</artifact.version> <!-- SONAR --> <jacoco.version>0.7.7.201606060606</jacoco.version> <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version> diff --git a/version.properties b/version.properties index b51743c..7408ce8 100644 --- a/version.properties +++ b/version.properties @@ -27,7 +27,7 @@ major=1 minor=0 -patch=20 +patch=22 base_version=${major}.${minor}.${patch} # Release must be completed with git revision # in Jenkins |