Refactor distribution module to application.
[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 endpoints.user.name=ccsdkapps
28 endpoints.user.password=ccsdkapps
29
30 ### START -Controller Blueprints Properties
31 # Load Resource Source Mappings
32 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
33
34 # Controller Blueprints Core Configuration
35 blueprintsprocessor.blueprintDeployPath=blueprints/deploy
36 blueprintsprocessor.blueprintArchivePath=blueprints/archive
37 blueprintsprocessor.blueprintWorkingPath=blueprints/work
38 # Controller Blueprint Load Configurations
39 # blueprints.load.initial-data may be overridden by ENV variables
40 blueprintsprocessor.loadInitialData=true
41 blueprintsprocessor.loadBluePrint=false
42 blueprintsprocessor.loadBluePrintPaths=./../../../components/model-catalog/blueprint-model/service-blueprint
43 blueprintsprocessor.loadModelType=true
44 blueprintsprocessor.loadModeTypePaths=./../../../components/model-catalog/definition-type/starter-type
45 blueprintsprocessor.loadResourceDictionary=true
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 ###NOTE: for remote executor tests, need to enable grpc and it's properties.
57 ###blueprintsprocessor.grpcEnable=false
58 # Assuming running locally 
59 ###blueprintsprocessor.grpcclient.remote-python.type=token-auth
60 ###blueprintsprocessor.grpcclient.remote-python.host=localhost
61 ###blueprintsprocessor.grpcclient.remote-python.port=50051
62 ###blueprintsprocessor.grpcclient.remote-python.token=Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==
63
64 # Blueprint Processor File Execution and Handling Properties
65 ### use absolute paths if testing inside docker
66 ### blueprintsprocessor.blueprintDeployPath=/opt/app/onap/blueprints/deploy
67 ### blueprintsprocessor.blueprintArchivePath=/opt/app/onap/blueprints/archive
68 ### blueprintsprocessor.blueprintWorkingPath=/opt/app/onap/blueprints/working
69 # Primary Database Configuration
70 blueprintsprocessor.db.url=jdbc:mysql://localhost:3306/sdnctl
71 blueprintsprocessor.db.username=sdnctl
72 blueprintsprocessor.db.password=sdnctl
73 blueprintsprocessor.db.driverClassName=org.mariadb.jdbc.Driver
74 blueprintsprocessor.db.hibernateHbm2ddlAuto=update
75 blueprintsprocessor.db.hibernateDDLAuto=none
76 blueprintsprocessor.db.hibernateNamingStrategy=org.hibernate.cfg.ImprovedNamingStrategy
77 blueprintsprocessor.db.hibernateDialect=org.hibernate.dialect.MySQL5InnoDBDialect
78
79 # Python executor
80 ### If testing in docker, use the absolute paths as Docker view of filesystem will not respect relative paths.
81 ### Don't forget to create directory /opt/app/onap and share it with Docker containers on your system.
82 ###blueprints.processor.functions.python.executor.executionPath=/opt/app/onap/scripts/jython/ccsdk_blueprints
83 ###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
84
85 blueprints.processor.functions.python.executor.executionPath=./../../../components/scripts/python/ccsdk_blueprints
86 blueprints.processor.functions.python.executor.modulePaths=./../../../components/scripts/python/ccsdk_blueprints,./../../../components/scripts/python/ccsdk_netconf,./../../../components/scripts/python/ccsdk_restconf
87
88 # SDN-C's ODL Restconf Connection Details
89 blueprintsprocessor.restconfEnabled=true
90 blueprintsprocessor.restclient.sdncodl.type=basic-auth
91 blueprintsprocessor.restclient.sdncodl.url=http://localhost:8282/
92 blueprintsprocessor.restclient.sdncodl.username=admin
93 blueprintsprocessor.restclient.sdncodl.password=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
94
95 # Executor Options
96 blueprintprocessor.resourceResolution.enabled=true
97 blueprintprocessor.netconfExecutor.enabled=true
98 blueprintprocessor.restConfExecutor.enabled=true
99 blueprintsprocessor.cliExecutor.enabled=true
100 ### If enabling remote python executor, set this value to true
101 ### blueprintprocessor.remoteScriptCommand.enabled=true
102 blueprintprocessor.remoteScriptCommand.enabled=false
103
104 # Kafka-message-lib Configurations
105 blueprintsprocessor.messageconsumer.self-service-api.kafkaEnable=false
106 blueprintsprocessor.messageconsumer.self-service-api.type=kafka-basic-auth
107 blueprintsprocessor.messageconsumer.self-service-api.bootstrapServers=127.0.0.1:9092
108 blueprintsprocessor.messageconsumer.self-service-api.groupId=receiver-id
109 blueprintsprocessor.messageconsumer.self-service-api.topic=receiver.t
110 blueprintsprocessor.messageconsumer.self-service-api.clientId=default-client-id
111 blueprintsprocessor.messageconsumer.self-service-api.pollMillSec=1000
112
113 blueprintsprocessor.messageproducer.self-service-api.type=kafka-basic-auth
114 blueprintsprocessor.messageproducer.self-service-api.bootstrapServers=127.0.0.1:9092
115 blueprintsprocessor.messageproducer.self-service-api.clientId=default-client-id
116 blueprintsprocessor.messageproducer.self-service-api.topic=producer.t