Renaming Files having BluePrint to have Blueprint
[ccsdk/cds.git] / ms / blueprintsprocessor / application / src / main / resources / application-dev.properties
1 #
2 #  Copyright © 2017-2018 AT&T Intellectual Property.
3 #
4 #  Modifications Copyright © 2019 IBM, Bell Canada.
5 #
6 #  Licensed under the Apache License, Version 2.0 (the "License");
7 #  you may not use this file except in compliance with the License.
8 #  You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #  Unless required by applicable law or agreed to in writing, software
13 #  distributed under the License is distributed on an "AS IS" BASIS,
14 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #  See the License for the specific language governing permissions and
16 #  limitations under the License.
17 #
18 #logging.level.web=DEBUG
19
20
21 #NOTE: When creating a runner for CDS BP application, don't forget to update the working directory!
22 #Current paths assume relative paths to $CDS_DIR/ms/blueprintsprocessor/application
23
24 # Web server config
25 server.port=8081
26 # Used in Health Check
27 security.user.password: {bcrypt}$2a$10$duaUzVUVW0YPQCSIbGEkQOXwafZGwQ/b32/Ys4R1iwSSawFgz7QNu
28 security.user.name: ccsdkapps
29
30 # Error Managements
31 error.catalog.applicationId=cds
32 error.catalog.type=properties
33 error.catalog.errorDefinitionDir=./src/main/resources/
34
35 ### START -Controller Blueprints Properties
36 # Load Resource Source Mappings
37 resourceSourceMappings=processor-db=source-db,input=source-input,default=source-default,sdnc=source-rest,aai-data=source-rest,capability=source-capability,vault-data=source-rest,rest=source-rest,script=source-capability
38 # Controller Blueprints Core Configuration
39 blueprintsprocessor.blueprintDeployPath=blueprints/deploy
40 blueprintsprocessor.blueprintArchivePath=blueprints/archive
41 blueprintsprocessor.blueprintWorkingPath=blueprints/work
42
43 # Controller Blueprint Load Configurations
44 blueprintsprocessor.loadBlueprintPaths=./../../../components/model-catalog/blueprint-model/service-blueprint
45 blueprintsprocessor.loadModeTypePaths=./../../../components/model-catalog/definition-type/starter-type
46 blueprintsprocessor.loadResourceDictionaryPaths=./../../../components/model-catalog/resource-dictionary/starter-dictionary
47
48 # CBA file extension
49 blueprintsprocessor.loadCbaExtension=zip
50
51 ### END -Controller Blueprints Properties
52
53 blueprintsprocessor.grpcEnable=false
54 blueprintsprocessor.httpPort=8081
55 blueprintsprocessor.grpcPort=9111
56
57 # Command executor
58 # grpc if debugging locally and do not need it by setting
59 # blueprintsprocessor.grpcEnable=false
60 blueprintsprocessor.grpcclient.remote-python.type=token-auth
61 blueprintsprocessor.grpcclient.remote-python.host=localhost
62 blueprintsprocessor.grpcclient.remote-python.port=50051
63 blueprintsprocessor.grpcclient.remote-python.token=Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
64
65 # Py executor
66 blueprintsprocessor.grpcclient.py-executor.type=tls-auth
67 blueprintsprocessor.grpcclient.py-executor.host=localhost:50052
68 blueprintsprocessor.grpcclient.py-executor.trustCertCollection=src/main/resources/certs/py-executor/py-executor-chain.pem
69
70 # Blueprint Processor File Execution and Handling Properties
71 ### use absolute paths if testing inside docker
72 #blueprintsprocessor.blueprintDeployPath=/opt/app/onap/blueprints/deploy
73 #blueprintsprocessor.blueprintArchivePath=/opt/app/onap/blueprints/archive
74 #blueprintsprocessor.blueprintWorkingPath=/opt/app/onap/blueprints/working
75
76
77 # db
78 blueprintsprocessor.db.url=jdbc:mysql://localhost:3306/sdnctl
79 blueprintsprocessor.db.username=sdnctl
80 blueprintsprocessor.db.password=sdnctl
81 blueprintsprocessor.db.driverClassName=org.mariadb.jdbc.Driver
82 blueprintsprocessor.db.hibernateHbm2ddlAuto=update
83 blueprintsprocessor.db.hibernateDDLAuto=update
84 blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
85 blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
86
87 # processor-db endpoint
88 blueprintsprocessor.db.processor-db.type=maria-db
89 blueprintsprocessor.db.processor-db.url=jdbc:mysql://localhost:3306/sdnctl
90 blueprintsprocessor.db.processor-db.username=root
91 blueprintsprocessor.db.processor-db.password=secretpassword
92
93 # Python executor
94 ### If testing in docker, use the absolute paths as Docker view of filesystem will not respect relative paths.
95 ### Don't forget to create directory /opt/app/onap and share it with Docker containers on your system.
96 ###blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython/ccsdk_blueprints
97 ###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
98
99 blueprints.processor.functions.python.executor.executionPath=./../../../components/scripts/python/ccsdk_blueprints
100 blueprints.processor.functions.python.executor.modulePaths=./../../../components/scripts/python/ccsdk_blueprints,./../../../components/scripts/python/ccsdk_netconf,./../../../components/scripts/python/ccsdk_restconf
101
102 # SDN-C's ODL Restconf Connection Details
103 blueprintsprocessor.restconfEnabled=true
104 blueprintsprocessor.restclient.sdnc.type=basic-auth
105 blueprintsprocessor.restclient.sdnc.url=http://sdnc:8282
106 blueprintsprocessor.restclient.sdnc.username=admin
107 blueprintsprocessor.restclient.sdnc.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
108
109 # Primary AAI Data REST Client settings
110 blueprintsprocessor.restclient.aai-data.type=basic-auth
111 blueprintsprocessor.restclient.aai-data.url=https://aai:8443
112 blueprintsprocessor.restclient.aai-data.username=aai@aai.onap.org
113 blueprintsprocessor.restclient.aai-data.password=demo123456!
114 blueprintsprocessor.restclient.aai-data.additionalHeaders.X-TransactionId=cds-transaction-id
115 blueprintsprocessor.restclient.aai-data.additionalHeaders.X-FromAppId=cds-app-id
116 blueprintsprocessor.restclient.aai-data.additionalHeaders.Accept=application/json
117 # Executor Options
118 blueprintsprocessor.resourceResolution.enabled=true
119 blueprintsprocessor.netconfExecutor.enabled=true
120 blueprintsprocessor.restConfExecutor.enabled=true
121 blueprintsprocessor.cliExecutor.enabled=true
122 ### If enabling remote python executor, set this value to true
123 #blueprintsprocessor.remoteScriptCommand.enabled=true
124 blueprintsprocessor.remoteScriptCommand.enabled=false
125 blueprintsprocessor.remote-script-command.response.log.enabled=false
126
127 # Kafka-message-lib Configurations
128 ## Request consumer
129 blueprintsprocessor.messageconsumer.self-service-api.kafkaEnable=false
130 blueprintsprocessor.messageconsumer.self-service-api.type=kafka-basic-auth
131 blueprintsprocessor.messageconsumer.self-service-api.bootstrapServers=127.0.0.1:9092
132 blueprintsprocessor.messageconsumer.self-service-api.groupId=receiver-id
133 blueprintsprocessor.messageconsumer.self-service-api.topic=receiver.t
134 blueprintsprocessor.messageconsumer.self-service-api.clientId=request-receiver-client-id
135 blueprintsprocessor.messageconsumer.self-service-api.pollMillSec=1000
136 #### Security settings
137 #### SSL
138 #blueprintsprocessor.messageconsumer.self-service-api.truststore=/path/to/truststore.jks
139 #blueprintsprocessor.messageconsumer.self-service-api.truststorePassword=truststorePassword
140 #blueprintsprocessor.messageconsumer.self-service-api.keystore=/path/to/keystore.jks
141 #blueprintsprocessor.messageconsumer.self-service-api.keystorePassword=keystorePassword
142 #### SCRAM
143 #blueprintsprocessor.messageconsumer.self-service-api.scramUsername=test-user
144 #blueprintsprocessor.messageconsumer.self-service-api.scramPassword=testUserPassword
145
146 ## Response producer
147 blueprintsprocessor.messageproducer.self-service-api.type=kafka-basic-auth
148 blueprintsprocessor.messageproducer.self-service-api.bootstrapServers=127.0.0.1:9092
149 blueprintsprocessor.messageproducer.self-service-api.clientId=producer-id
150 blueprintsprocessor.messageproducer.self-service-api.topic=producer.t
151
152 # Kafka audit service Configurations
153 ## Audit request
154 blueprintsprocessor.messageproducer.self-service-api.audit.kafkaEnable=false
155 blueprintsprocessor.messageproducer.self-service-api.audit.request.type=kafka-basic-auth
156 blueprintsprocessor.messageproducer.self-service-api.audit.request.bootstrapServers=127.0.0.1:9092
157 blueprintsprocessor.messageproducer.self-service-api.audit.request.clientId=audit-request-producer-client-id
158 blueprintsprocessor.messageproducer.self-service-api.audit.request.topic=audit-request-producer.t
159
160 ## Audit response
161 blueprintsprocessor.messageproducer.self-service-api.audit.response.type=kafka-basic-auth
162 blueprintsprocessor.messageproducer.self-service-api.audit.response.bootstrapServers=127.0.0.1:9092
163 blueprintsprocessor.messageproducer.self-service-api.audit.response.clientId=audit-response-producer-client-id
164 blueprintsprocessor.messageproducer.self-service-api.audit.response.topic=audit-response-producer.t
165
166
167 # Message prioritization kakfa properties, Enable if Prioritization service is needed
168 # Deploy message-prioritization function along with blueprintsprocessor application.
169 #blueprintsprocessor.messageconsumer.prioritize-input.type=kafka-streams-basic-auth
170 #blueprintsprocessor.messageconsumer.prioritize-input.bootstrapServers=127.0.0.1:9092
171 #blueprintsprocessor.messageconsumer.prioritize-input.applicationId=cds-controller
172 #blueprintsprocessor.messageconsumer.prioritize-input.topic=prioritize-input-topic
173
174 #K8s Plugin properties
175 blueprintprocessor.k8s.plugin.username=test
176 blueprintprocessor.k8s.plugin.password=pass
177 blueprintprocessor.k8s.plugin.url=http://multicloud-k8s:9015/