[CDS] Added properties for k8s-profile-upload component
[oom.git] / kubernetes / cds / charts / cds-blueprints-processor / resources / config / application.properties
1 #
2 #  Copyright (c) 2017-2019 AT&T, IBM, Bell Canada, Nordix Foundation.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #
16 # Web server config
17 ### START -Controller Blueprints Properties
18 # Load Resource Source Mappings
19 resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,sdnc=source-rest,aai-data=source-rest,capability=source-capability,rest=source-rest,vault-data=source-rest,script=source-capability
20
21 # Blueprint Processor File Execution and Handling Properties
22 blueprintsprocessor.blueprintDeployPath=/opt/app/onap/blueprints/deploy
23 blueprintsprocessor.blueprintArchivePath=/opt/app/onap/blueprints/archive
24 blueprintsprocessor.blueprintWorkingPath=/opt/app/onap/blueprints/working
25
26 # blueprints.load.initial-data may be overridden by ENV variables
27 blueprintsprocessor.loadInitialData=true
28 blueprintsprocessor.loadBluePrint=true
29 blueprintsprocessor.loadBluePrintPaths=/opt/app/onap/model-catalog/blueprint-model/service-blueprint
30 blueprintsprocessor.loadModelType=true
31 blueprintsprocessor.loadModeTypePaths=/opt/app/onap/model-catalog/definition-type/starter-type
32 blueprintsprocessor.loadResourceDictionary=true
33 blueprintsprocessor.loadResourceDictionaryPaths=/opt/app/onap/model-catalog/resource-dictionary/starter-dictionary
34
35 # CBA file extension
36 controllerblueprints.loadCbaExtension=zip
37
38 ### END -Controller Blueprints Properties
39
40 blueprintsprocessor.grpcEnable=true
41 blueprintsprocessor.httpPort=8080
42 blueprintsprocessor.grpcPort=9111
43
44 # db
45 blueprintsprocessor.db.url=jdbc:mysql://{{.Values.config.cdsDB.dbServer}}:{{.Values.config.cdsDB.dbPort}}/{{.Values.config.cdsDB.dbName}}
46 blueprintsprocessor.db.username=${CDS_DB_USERNAME}
47 blueprintsprocessor.db.password=${CDS_DB_PASSWORD}
48 blueprintsprocessor.db.driverClassName=org.mariadb.jdbc.Driver
49 blueprintsprocessor.db.hibernateHbm2ddlAuto=update
50 blueprintsprocessor.db.hibernateDDLAuto=update
51 blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
52 blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
53
54 # processor-db endpoint
55 blueprintsprocessor.db.processor-db.type=maria-db
56 blueprintsprocessor.db.processor-db.url=jdbc:mysql://{{ .Values.config.sdncDB.dbService }}:{{ .Values.config.sdncDB.dbPort }}/{{.Values.config.sdncDB.dbName}}
57 blueprintsprocessor.db.processor-db.username=${SDNC_DB_USERNAME}
58 blueprintsprocessor.db.processor-db.password=${SDNC_DB_PASSWORD}
59
60 # Python executor
61 blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython/ccsdk_blueprints
62 blueprints.processor.functions.python.executor.modulePaths=/opt/app/onap/scripts/jython/ccsdk_blueprints,/opt/app/onap/scripts/jython/ccsdk_netconf,/opt/app/onap/scripts/jython/ccsdk_restconf
63
64 security.user.password: {bcrypt}$2a$10$duaUzVUVW0YPQCSIbGEkQOXwafZGwQ/b32/Ys4R1iwSSawFgz7QNu
65 security.user.name: ccsdkapps
66
67 # Error Managements
68 error.catalog.applicationId=cds
69 error.catalog.type=properties
70 error.catalog.errorDefinitionFileDirectory=/opt/app/onap/config
71
72 # SDN-C's ODL Restconf Connection Details
73 blueprintsprocessor.restconfEnabled=true
74 blueprintsprocessor.restclient.sdncodl.type=basic-auth
75 blueprintsprocessor.restclient.sdncodl.url=http://{{ .Values.global.sdncOamService }}:{{ .Values.global.sdncOamPort }}/
76 blueprintsprocessor.restclient.sdncodl.username=admin
77 blueprintsprocessor.restclient.sdncodl.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
78
79 # Executor Options
80 blueprintprocessor.resourceResolution.enabled=true
81 blueprintprocessor.netconfExecutor.enabled=true
82 blueprintprocessor.restConfExecutor.enabled=true
83 blueprintprocessor.remoteScriptCommand.enabled=true
84 blueprintsprocessor.remote-script-command.response.log.enabled=false
85
86 # Command executor
87 blueprintsprocessor.grpcclient.remote-python.type=token-auth
88 blueprintsprocessor.grpcclient.remote-python.host=cds-command-executor
89 blueprintsprocessor.grpcclient.remote-python.port=50051
90 blueprintsprocessor.grpcclient.remote-python.token=Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
91 blueprintsprocessor.grpcclient.py-executor.host=py-executor-default:50052
92 blueprintsprocessor.grpcclient.py-executor.trustCertCollection=/opt/app/onap/config/certs/py-executor/py-executor-chain.pem
93 blueprintsprocessor.grpcclient.py-executor.type=tls-auth
94 # Config Data REST client settings
95 blueprintsprocessor.restclient.sdnc.type=basic-auth
96 blueprintsprocessor.restclient.sdnc.url=http://{{ .Values.global.sdncOamService }}:{{ .Values.global.sdncOamPort }}
97 blueprintsprocessor.restclient.sdnc.username=admin
98 blueprintsprocessor.restclient.sdnc.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
99
100 # AAI Data REST Client settings
101 blueprintsprocessor.restclient.aai-data.type=basic-auth
102 blueprintsprocessor.restclient.aai-data.url=https://aai:8443
103 blueprintsprocessor.restclient.aai-data.username=aai@aai.onap.org
104 blueprintsprocessor.restclient.aai-data.password=demo123456!
105 blueprintsprocessor.restclient.aai-data.additionalHeaders.X-TransactionId=cds-transaction-id
106 blueprintsprocessor.restclient.aai-data.additionalHeaders.X-FromAppId=cds-app-id
107 blueprintsprocessor.restclient.aai-data.additionalHeaders.Accept=application/json
108
109 # Self Service Request Kafka Message Consumer
110 blueprintsprocessor.messageconsumer.self-service-api.kafkaEnable=false
111 blueprintsprocessor.messageconsumer.self-service-api.type=kafka-basic-auth
112 blueprintsprocessor.messageconsumer.self-service-api.bootstrapServers=message-router-kafka:9092
113 blueprintsprocessor.messageconsumer.self-service-api.groupId=cds-consumer-group
114 blueprintsprocessor.messageconsumer.self-service-api.topic=cds-consumer
115 blueprintsprocessor.messageconsumer.self-service-api.clientId=cds-client
116 blueprintsprocessor.messageconsumer.self-service-api.pollMillSec=1000
117
118 # Self Service Response Kafka Message Producer
119 blueprintsprocessor.messageproducer.self-service-api.bootstrapServers=message-router-kafka:9092
120
121 # Kafka Audit Service Configurations
122 blueprintsprocessor.messageproducer.self-service-api.audit.kafkaEnable=false
123
124 # Executor Options
125 blueprintsprocessor.resourceResolution.enabled=true
126 blueprintsprocessor.netconfExecutor.enabled=true
127 blueprintsprocessor.restConfExecutor.enabled=true
128 blueprintsprocessor.cliExecutor.enabled=true
129 blueprintsprocessor.remoteScriptCommand.enabled=true
130 ## Enable py-executor
131 blueprintsprocessor.streamingRemoteExecution.enabled=true
132
133 # Used in Health Check
134 blueprintsprocessor.messageproducer.self-service-api.type=kafka-basic-auth
135 blueprintsprocessor.messageproducer.self-service-api.clientId=cds-client
136 blueprintsprocessor.messageproducer.self-service-api.topic=cds-producer
137
138
139 #Encrypted username and password for health check service
140 endpoints.user.name=eHbVUbJAj4AG2522cSbrOQ==
141 endpoints.user.password=eHbVUbJAj4AG2522cSbrOQ==
142
143 #BaseUrls for health check blueprint processor services
144 blueprintprocessor.healthcheck.baseUrl=http://localhost:8080/
145 blueprintprocessor.healthcheck.mapping-service-name-with-service-link=[Execution service,/api/v1/execution-service/health-check],[Resources service,/api/v1/resources/health-check],[Template service,/api/v1/template/health-check]
146
147 #BaseUrls for health check Cds Listener services
148 cdslistener.healthcheck.baseUrl=http://cds-sdc-listener:8080/
149 cdslistener.healthcheck.mapping-service-name-with-service-link=[SDC Listener service,/api/v1/sdclistener/healthcheck]
150
151 #Actuator properties
152 management.endpoints.web.exposure.include=*
153 management.endpoint.health.show-details=always
154
155 #K8s Plugin properties
156 #Credentials are placeholders as k8s plugin has not authentication atm
157 blueprintprocessor.k8s.plugin.username=unused
158 blueprintprocessor.k8s.plugin.password=unused
159 blueprintprocessor.k8s.plugin.url=http://multicloud-k8s:9015/