xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 1 | ### |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # ONAP CLAMP |
| 4 | # ================================================================================ |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 5 | # Copyright (C) 2017-2019 AT&T Intellectual Property. All rights |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 6 | # reserved. |
| 7 | # ================================================================================ |
| 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | # you may not use this file except in compliance with the License. |
| 10 | # You may obtain a copy of the License at |
| 11 | # |
| 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | # |
| 14 | # Unless required by applicable law or agreed to in writing, software |
| 15 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | # See the License for the specific language governing permissions and |
| 18 | # limitations under the License. |
| 19 | # ============LICENSE_END============================================ |
| 20 | # =================================================================== |
| 21 | # |
| 22 | ### |
| 23 | |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 24 | ### Set the port for HTTP or HTTPS protocol (Controlled by Spring framework, only one at a time). |
| 25 | ### (See below for the parameter 'server.http.port' if you want to have both enabled) |
| 26 | ### To have only HTTP, keep the lines server.ssl.* commented |
| 27 | ### To have only HTTPS enabled, uncomment the server.ssl.* lines and specify a right keystore location |
| 28 | ### server.port=8080 |
| 29 | ### Settings for HTTPS (this automatically enables the HTTPS on the port 'server.port') |
| 30 | #server.ssl.key-store=file:/tmp/mykey.jks |
| 31 | #server.ssl.key-store-password=pass |
| 32 | #server.ssl.key-password=pass |
| 33 | |
| 34 | ### In order to be user friendly when HTTPS is enabled, |
| 35 | ### you can add another HTTP port that will be automatically redirected to HTTPS |
| 36 | ### by enabling this parameter (server.http.port) and set it to another port (80 or 8080, 8090, etc ...) |
| 37 | #server.http-to-https-redirection.port=8090 |
| 38 | |
| 39 | ### HTTP Example: |
| 40 | ###-------------- |
| 41 | ### server.port=8080 |
| 42 | |
| 43 | ### HTTPS Example: |
| 44 | ### -------------- |
| 45 | ### server.port=8443 |
| 46 | ### server.ssl.key-store=file:/tmp/mykey.jks |
| 47 | ### server.ssl.key-store-password=mypass |
| 48 | ### server.ssl.key-password=mypass |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 49 | server.port=8443 |
| 50 | ## Config part for Server certificates |
| 51 | # Can be a classpath parameter instead of file:/ |
| 52 | server.ssl.key-store=classpath:/clds/aaf/org.onap.clamp.p12 |
xuegao | 1ebfe6b | 2019-11-28 15:13:18 +0100 | [diff] [blame] | 53 | server.ssl.key-store-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc |
| 54 | server.ssl.key-password=enc:WWCxchk4WGBNSvuzLq3MLjMs5ObRybJtts5AI0XD1Vc |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 55 | server.ssl.key-store-type=PKCS12 |
| 56 | server.ssl.key-alias=clamp@clamp.onap.org |
| 57 | |
| 58 | ## Config part for Client certificates |
| 59 | server.ssl.client-auth=want |
| 60 | server.ssl.trust-store=classpath:/clds/aaf/truststoreONAPall.jks |
xuegao | 1ebfe6b | 2019-11-28 15:13:18 +0100 | [diff] [blame] | 61 | server.ssl.trust-store-password=enc:iDnPBBLq_EMidXlMa1FEuBR8TZzYxrCg66vq_XfLHdJ |
| 62 | |
| 63 | # The key file used to decode the key store and trust store password |
| 64 | # If not defined, the key store and trust store password will not be decrypted |
| 65 | clamp.config.keyFile=classpath:/clds/aaf/org.onap.clamp.keyfile |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 66 | |
| 67 | #server.http-to-https-redirection.port=8080 |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 68 | |
xg353y | 054f1d1 | 2018-07-23 16:02:28 +0200 | [diff] [blame] | 69 | server.servlet.context-path=/ |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 70 | #Modified engine-rest applicationpath |
sebdet | 897a3e0 | 2020-02-28 06:03:51 -0800 | [diff] [blame] | 71 | spring.profiles.active=clamp-default,clamp-default-user,clamp-sdc-controller,clamp-ssl-config,clamp-policy-controller,legacy-operational-policy |
sebdet | c2bcf2a | 2019-02-22 08:16:26 +0100 | [diff] [blame] | 72 | spring.http.converters.preferred-json-mapper=gson |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 73 | |
| 74 | #The max number of active threads in this pool |
| 75 | server.tomcat.max-threads=200 |
| 76 | #The minimum number of threads always kept alive |
| 77 | server.tomcat.min-Spare-Threads=25 |
| 78 | #The number of milliseconds before an idle thread shutsdown, unless the number of active threads are less or equal to minSpareThreads |
| 79 | server.tomcat.max-idle-time=60000 |
| 80 | |
| 81 | #Servlet context parameters |
| 82 | server.context_parameters.p-name=value #context parameter with p-name as key and value as value. |
| 83 | |
| 84 | camel.springboot.consumer-template-cache-size=1000 |
| 85 | camel.springboot.producer-template-cache-size=1000 |
Determe, Sebastien (sd378r) | f744247 | 2018-08-03 15:52:19 +0200 | [diff] [blame] | 86 | camel.springboot.jmx-enabled=true |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 87 | camel.defaultthreadpool.poolsize=10 |
| 88 | camel.defaultthreadpool.maxpoolsize=20 |
| 89 | camel.defaultthreadpool.maxqueuesize=1000 |
| 90 | camel.defaultthreadpool.keepaliveTime=60 |
| 91 | camel.defaultthreadpool.rejectpolicy=CallerRuns |
| 92 | #camel.springboot.xmlRoutes = false |
xg353y | 054f1d1 | 2018-07-23 16:02:28 +0200 | [diff] [blame] | 93 | camel.springboot.xmlRoutes=classpath:/clds/camel/routes/*.xml |
| 94 | camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 95 | #camel.springboot.typeConversion = false |
| 96 | |
| 97 | #clds datasource connection details |
| 98 | spring.datasource.cldsdb.driverClassName=org.mariadb.jdbc.Driver |
xuegao | 58c7c97 | 2019-09-26 13:29:10 +0200 | [diff] [blame] | 99 | spring.datasource.cldsdb.url=jdbc:mariadb:sequential://localhost:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3 |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 100 | spring.datasource.cldsdb.username=clds |
| 101 | spring.datasource.cldsdb.password=4c90a0b48204383f4283448d23e0b885a47237b2a23588e7c4651604f51c1067 |
| 102 | spring.datasource.cldsdb.validationQuery=SELECT 1 |
| 103 | spring.datasource.cldsdb.validationQueryTimeout=20000 |
| 104 | spring.datasource.cldsdb.validationInterval=30000 |
| 105 | spring.datasource.cldsdb.testWhileIdle = true |
| 106 | spring.datasource.cldsdb.minIdle = 0 |
| 107 | spring.datasource.cldsdb.initialSize=0 |
| 108 | # Automatically test whether a connection provided is good or not |
| 109 | spring.datasource.cldsdb.testOnBorrow=true |
| 110 | spring.datasource.cldsdb.ignoreExceptionOnPreLoad=true |
sebdet | c2bcf2a | 2019-02-22 08:16:26 +0100 | [diff] [blame] | 111 | # control the sql db initialization (from schema.sql and data.sql) |
| 112 | spring.datasource.initialize=false |
| 113 | |
| 114 | spring.jpa.properties.javax.persistence.schema-generation.database.action=none |
| 115 | s#pring.jpa.properties.javax.persistence.schema-generation.create-source=metadata |
| 116 | #spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create |
| 117 | #spring.jpa.properties.javax.persistence.schema-generation.scripts.create-target=create.sql |
| 118 | # disable Hibernate DDL generation because the schema will be generated from a sql script |
| 119 | spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect |
| 120 | spring.jpa.properties.hibernate.ddl-auto=validate |
| 121 | spring.jpa.properties.hibernate.hbm2ddl.delimiter=; |
| 122 | spring.jpa.properties.hibernate.format_sql=true |
| 123 | spring.jpa.properties.hibernate.use-new-id-generator-mappings=true |
| 124 | |
| 125 | # Whether to enable logging of SQL statements. |
sebdet | 7fc0739 | 2019-04-10 15:27:46 +0200 | [diff] [blame] | 126 | #spring.jpa.show-sql=true |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 127 | |
| 128 | #Async Executor default Parameters |
| 129 | async.core.pool.size=10 |
| 130 | async.max.pool.size=20 |
| 131 | async.queue.capacity=500 |
| 132 | |
Determe, Sebastien (sd378r) | 499e4e8 | 2018-08-09 17:14:09 +0200 | [diff] [blame] | 133 | #For EELF logback file |
sebdet | 3294644 | 2019-01-14 14:16:51 +0100 | [diff] [blame] | 134 | #clamp.config.logback.path= |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 135 | clamp.config.logback.filename=logback-default.xml |
Determe, Sebastien (sd378r) | 499e4e8 | 2018-08-09 17:14:09 +0200 | [diff] [blame] | 136 | #The log folder that will be used in logback.xml file |
sebdet | 8ad2921 | 2018-12-14 11:56:22 +0100 | [diff] [blame] | 137 | clamp.config.log.path=/var/log/onap/clamp |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 138 | clamp.config.files.systemProperties=classpath:/system.properties |
| 139 | clamp.config.files.cldsUsers=classpath:/clds/clds-users.json |
| 140 | clamp.config.files.globalProperties=classpath:/clds/templates/globalProperties.json |
| 141 | clamp.config.files.sdcController=classpath:/clds/sdc-controllers-config.json |
| 142 | |
sebdet | 897a3e0 | 2020-02-28 06:03:51 -0800 | [diff] [blame] | 143 | |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 144 | # |
| 145 | # Configuration Settings for Policy Engine Components |
xuegao | 58c7c97 | 2019-09-26 13:29:10 +0200 | [diff] [blame] | 146 | clamp.config.policy.api.url=http4://localhost:8085 |
sebdet | af8b7d7 | 2019-04-26 16:34:14 +0200 | [diff] [blame] | 147 | clamp.config.policy.api.userName=healthcheck |
| 148 | clamp.config.policy.api.password=zb!XztG34 |
xuegao | 58c7c97 | 2019-09-26 13:29:10 +0200 | [diff] [blame] | 149 | clamp.config.policy.pap.url=http4://localhost:8085 |
sebdet | af8b7d7 | 2019-04-26 16:34:14 +0200 | [diff] [blame] | 150 | clamp.config.policy.pap.userName=healthcheck |
| 151 | clamp.config.policy.pap.password=zb!XztG34 |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 152 | |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 153 | # |
| 154 | # Sdc service properties |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 155 | clamp.config.sdc.csarFolder = /tmp/sdc-controllers |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 156 | |
| 157 | #DCAE Inventory Url Properties |
sebdet | 74303b7 | 2019-10-08 17:53:08 +0200 | [diff] [blame] | 158 | clamp.config.dcae.inventory.url=http4://localhost:8085 |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 159 | clamp.config.dcae.intentory.retry.interval=10000 |
sebdet | 19ab233 | 2018-09-12 18:52:39 +0200 | [diff] [blame] | 160 | clamp.config.dcae.intentory.retry.limit=5 |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 161 | |
xg353y | 39d82de | 2019-04-26 13:26:25 +0200 | [diff] [blame] | 162 | #DCAE Deployment Url Properties |
xuegao | 58c7c97 | 2019-09-26 13:29:10 +0200 | [diff] [blame] | 163 | clamp.config.dcae.deployment.url=http4://localhost:8085 |
xg353y | 39d82de | 2019-04-26 13:26:25 +0200 | [diff] [blame] | 164 | clamp.config.dcae.deployment.userName=test |
| 165 | clamp.config.dcae.deployment.password=test |
| 166 | |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 167 | #Define user permission related parameters, the permission type can be changed but MUST be redefined in clds-users.properties in that case ! |
| 168 | clamp.config.security.permission.type.cl=org.onap.clamp.clds.cl |
| 169 | clamp.config.security.permission.type.cl.manage=org.onap.clamp.clds.cl.manage |
xg353y | a9be95f | 2019-03-11 13:47:22 +0100 | [diff] [blame] | 170 | clamp.config.security.permission.type.cl.event=org.onap.clamp.clds.cl.event |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 171 | clamp.config.security.permission.type.filter.vf=org.onap.clamp.clds.filter.vf |
| 172 | clamp.config.security.permission.type.template=org.onap.clamp.clds.template |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 173 | clamp.config.security.permission.type.tosca=org.onap.clamp.clds.tosca |
xg353y | 7e836e1 | 2018-06-06 15:50:33 +0200 | [diff] [blame] | 174 | #This one indicates the type of instances (dev|prod|perf...), this must be set accordingly in clds-users.properties |
| 175 | clamp.config.security.permission.instance=dev |
sebdet | 3af9347 | 2020-03-09 16:15:19 -0700 | [diff] [blame] | 176 | clamp.config.security.authentication.class=org.onap.aaf.cadi.principal.X509Principal |
| 177 | |
| 178 | ## Tosca converter |
sebdet | 8604d37 | 2020-03-10 02:44:53 -0700 | [diff] [blame^] | 179 | clamp.config.tosca.converter.templates=classpath:/clds/tosca_updates/templates.json |
| 180 | |
| 181 | # Configuration settings for CDS |
| 182 | clamp.config.cds.url=http4://blueprints-processor-http:8080 |
| 183 | clamp.config.cds.userName=ccsdkapps |
| 184 | clamp.config.cds.password=ccsdkapps |