Merge "Change the Csar installer"
[clamp.git] / src / test / resources / clds / new-microservice.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2  
3 imports:
4   - "http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml"
5   - "https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R5/k8splugin/1.4.13/k8splugin_types.yaml"
6   - "https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R5/clamppolicyplugin/1.0.0/clamppolicyplugin_types.yaml"
7
8 inputs:
9   tag_version:
10     type: string
11     description: docker image
12   policy_model_id:
13     type: 'string'
14     default: 'onap.policies.monitoring.dcae-pm-initiation-handler'
15   policy_id:
16     type: 'string'
17     default: 'onap.policies.monitoring.dcae-pm-initiation-handler'
18
19 node_templates:
20   pmsh:
21     relationships:
22       - type: cloudify.relationships.depends_on
23         target: pmsh-policy
24
25     interfaces:
26       cloudify.interfaces.lifecycle:
27         start:
28           inputs:
29             ports:
30               - '8443:0'
31               - '8081:0'
32     properties:
33       image:
34         get_input: tag_version
35       replicas: 1
36       service_component_type: "pmsh"
37       service_component_name_override: "pmsh"
38     type: dcae.nodes.ContainerizedServiceComponent
39
40   pmsh-policy:
41     type: clamp.nodes.policy
42     properties:
43       policy_model_id:
44         get_input: policy_model_id
45       policy_id:
46         get_input: policy_id