aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2019-01-14 14:16:51 +0100
committersebdet <sebastien.determe@intl.att.com>2019-01-14 14:27:52 +0100
commit32946449d7ba80a17ad510ac30b6760c6d49d6f8 (patch)
treeafb767ef5302695a42c7ff969f24fb5df7637394
parent5dea22255fc131d5c2b0348986bfc75c56d17097 (diff)
Fix no AAF config
Add missing config for no AAF properties file Issue-ID: CLAMP-252 Change-Id: Iba8b0ed7119460a192cf30fcadb6e1b7b7e50b5d Signed-off-by: sebdet <sebastien.determe@intl.att.com>
-rw-r--r--README.md5
-rw-r--r--src/main/resources/application-noaaf.properties10
2 files changed, 12 insertions, 3 deletions
diff --git a/README.md b/README.md
index 08c2b2054..783501a66 100644
--- a/README.md
+++ b/README.md
@@ -173,4 +173,9 @@ Passwords should be hashed using Bcrypt :
Default credentials are admin/password and cs0008/password.
+There is a spring file that disables the AAF and enable the Spring authentication by default.
+To use it just add
+--spring.config.name=application-noaaf
+
+to the jvm parameters. This file is available by default in the java classpath resource folder. \ No newline at end of file
diff --git a/src/main/resources/application-noaaf.properties b/src/main/resources/application-noaaf.properties
index bf837ffbd..2d34fba7b 100644
--- a/src/main/resources/application-noaaf.properties
+++ b/src/main/resources/application-noaaf.properties
@@ -82,7 +82,7 @@ camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
#clds datasource connection details
spring.datasource.cldsdb.driverClassName=org.mariadb.jdbc.Driver
-spring.datasource.cldsdb.url=jdbc:mariadb:sequential://localhost:${docker.mariadb.port.host}/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
+spring.datasource.cldsdb.url=jdbc:mariadb:sequential://localhost:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
spring.datasource.cldsdb.username=clds
spring.datasource.cldsdb.password=4c90a0b48204383f4283448d23e0b885a47237b2a23588e7c4651604f51c1067
spring.datasource.cldsdb.validationQuery=SELECT 1
@@ -101,7 +101,7 @@ async.max.pool.size=20
async.queue.capacity=500
#For EELF logback file
-#com.att.eelf.logging.path=
+#clamp.config.logback.path=
clamp.config.logback.filename=logback-default.xml
#The log folder that will be used in logback.xml file
clamp.config.log.path=/var/log/onap/clamp
@@ -147,6 +147,9 @@ clamp.config.policy.op.policyNamePrefix=Config_BRMS_Param_
clamp.config.policy.base.policyNamePrefix=Config_
clamp.config.policy.op.type=BRMS_Param
+clamp.config.import.tosca.model=true
+clamp.config.tosca.policyTypes=tca
+clamp.config.tosca.filePath=/tmp/tosca-models
# TCA MicroService Policy request build properties
#
@@ -159,7 +162,7 @@ clamp.config.tca.thresholds.template=classpath:/clds/templates/tca-thresholds-te
#
# Operational Policy request build properties
#
-clamp.config.op.policyDescription=from clds
+clamp.config.op.policyDescription=from CLAMP
# default
clamp.config.op.templateName=ClosedLoopControlName
clamp.config.op.operationTopic=APPC-CL
@@ -212,3 +215,4 @@ clamp.config.security.permission.type.template=org.onap.clamp.clds.template
clamp.config.security.permission.type.tosca=org.onap.clamp.clds.tosca
#This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties
clamp.config.security.permission.instance=dev
+clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal \ No newline at end of file