blob: 42523993aaaca1a5c15ffba59e91eb0741d63217 [file] [log] [blame]
Krzysztof Kuzmicki0fa522a2021-04-12 11:47:19 +02001tosca_definitions_version: cloudify_dsl_1_3
2imports:
3 - 'http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml'
4 - 'plugin:k8splugin?version=>=3.4.2,<4.0.0'
5inputs:
6 tag_version:
7 type: string
8 description: Docker image to be used
9 default: 'mongo'
10 replicas:
11 type: integer
12 description: Number of instances
13 default: 1
14 service_component_type:
15 type: string
16 default: "mongo-ves-client"
17 service_component_name_override:
18 type: string
19 default: "mongo-ves-client"
20node_templates:
21 mongo:
22 type: dcae.nodes.ContainerizedServiceComponent
23 interfaces:
24 cloudify.interfaces.lifecycle:
25 start:
26 inputs:
27 envs:
28 MONGO_INITDB_ROOT_USERNAME: root
29 MONGO_INITDB_ROOT_PASSWORD: zXcVbN123!
30 MONGO_INITDB_DATABASE: pnf_simulator
31 ports:
32 - '27017:0'
33 properties:
34 service_component_type: { get_input: service_component_type }
35 service_component_name_override: { get_input: service_component_name_override }
36 image: { get_input: tag_version }
37 replicas: { get_input: replicas }