0c7dc7ba784446375883e4454f0960b59000e156
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     security_group_name:
12       hidden: false
13       immutable: false
14       annotations:
15         source:
16           type: org.openecomp.annotations.Source
17           properties:
18             vf_module_label:
19             - main
20             source_type: HEAT
21             param_name: security_group_name
22       type: string
23       description: security_group_name
24     jsa_name:
25       hidden: false
26       immutable: false
27       annotations:
28         source:
29           type: org.openecomp.annotations.Source
30           properties:
31             vf_module_label:
32             - main
33             source_type: HEAT
34             param_name: jsa_name
35       type: string
36       description: network name of jsa log network
37   node_templates:
38     dependsOn_network:
39       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
40       properties:
41         network_name:
42           get_input: jsa_name
43       requirements:
44       - dependency:
45           capability: tosca.capabilities.Node
46           node: test_nested_same_file_1
47           relationship: tosca.relationships.DependsOn
48       - dependency:
49           capability: tosca.capabilities.Node
50           node: test_nested_same_file_2
51           relationship: tosca.relationships.DependsOn
52       - dependency:
53           capability: tosca.capabilities.Node
54           node: test_nested_diff_file
55           relationship: tosca.relationships.DependsOn
56     test_nested_diff_file:
57       type: org.openecomp.resource.abstract.nodes.heat.nested-other-file-1B
58       directives:
59       - substitutable
60       properties:
61         p1: jsa_security_group1
62         service_template_filter:
63           substitute_service_template: nested-other-file-1BServiceTemplate.yaml
64     test_nested_same_file_1:
65       type: org.openecomp.resource.abstract.nodes.heat.nested-same-file-1B
66       directives:
67       - substitutable
68       properties:
69         p1:
70           get_attribute:
71           - test_nested_diff_file
72           - nested_diff_file_attr_1
73         service_template_filter:
74           substitute_service_template: nested-same-file-1BServiceTemplate.yaml
75         p2: jsa_security_group2
76     test_nested_same_file_2:
77       type: org.openecomp.resource.abstract.nodes.heat.nested-same-file-1B
78       directives:
79       - substitutable
80       properties:
81         service_template_filter:
82           substitute_service_template: nested-same-file-1BServiceTemplate.yaml
83         p2:
84           get_attribute:
85           - test_nested_same_file_1
86           - nested_same_file_attr_1
87     jsa_security_group1:
88       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
89       properties:
90         name:
91           get_input: security_group_name
92         description: ems security group
93         rules:
94         - protocol: tcp
95           ethertype: IPv4
96           port_range_max: 65535
97           remote_ip_prefix: 0.0.0.0/0
98           direction: egress
99           port_range_min: 1
100       requirements:
101       - port:
102           capability: attachment_ps_server_port
103           node: test_nested_diff_file
104           relationship: org.openecomp.relationships.AttachesTo
105       - port:
106           capability: attachment_pd_server_port
107           node: test_nested_diff_file
108           relationship: org.openecomp.relationships.AttachesTo
109     jsa_security_group2:
110       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
111       properties:
112         name:
113           get_input: security_group_name
114         description: ems security group
115         rules:
116         - protocol: icmp
117           ethertype: IPv6
118           remote_ip_prefix: ::/0
119           direction: ingress
120       requirements:
121       - port:
122           capability: attachment_sm_server_port
123           node: test_nested_same_file_1
124           relationship: org.openecomp.relationships.AttachesTo
125   groups:
126     main_group:
127       type: org.openecomp.groups.heat.HeatStack
128       properties:
129         heat_file: ../Artifacts/main.yml
130         description: |
131           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
132       members:
133       - dependsOn_network
134       - test_nested_diff_file
135       - test_nested_same_file_1
136       - test_nested_same_file_2
137       - jsa_security_group1
138       - jsa_security_group2