17fb056d3a1b106680e24441d39924b66a9f48f0
[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     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       type: list
16       description: OAM network ips
17       default:
18       - 107.239.64.121
19       entry_schema:
20         type: string
21     availabilityzone_name:
22       label: availabilityzone name
23       hidden: false
24       immutable: false
25       type: string
26       description: availabilityzone name
27       default: nova
28     oam_net_gw:
29       label: CPS network gateway
30       hidden: false
31       immutable: false
32       type: string
33       description: CPS network gateway
34       default: 107.239.64.1
35     pcm_server_names:
36       label: PCRF CM server names
37       hidden: false
38       immutable: false
39       type: list
40       description: name of the PCRF CM instance
41       default:
42       - ZRDM1PCRF01PCM001
43       entry_schema:
44         type: string
45     pcm_image_name:
46       label: PCRF CM image name
47       hidden: false
48       immutable: false
49       type: string
50       description: PCRF CM image name
51       default: rhel2
52     cps_net_ips:
53       label: CPS network ips
54       hidden: false
55       immutable: false
56       type: list
57       description: CPS network ips
58       default:
59       - 172.26.16.113
60       entry_schema:
61         type: string
62     security_group_name:
63       label: security group name
64       hidden: false
65       immutable: false
66       type: string
67       description: the name of security group
68       default: nimbus_security_group
69     pcm_volumes:
70       label: CPS Cluman Cinder Volume
71       hidden: false
72       immutable: false
73       type: list
74       description: CPS Cluman Cinder Volume
75       default:
76       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
77       entry_schema:
78         type: string
79     compute_image_name:
80       hidden: false
81       immutable: false
82       type: string
83     pcm_flavor_name:
84       label: PCRF CM flavor name
85       hidden: false
86       immutable: false
87       type: string
88       description: flavor name of PCRF CM instance
89       default: cps
90     cps_net_name:
91       label: CPS network name
92       hidden: false
93       immutable: false
94       type: string
95       description: CPS network name
96       default: int_pcrf_net_0
97     cps_net_mask:
98       label: CPS network mask
99       hidden: false
100       immutable: false
101       type: string
102       description: CPS network mask
103       default: 255.255.255.0
104     oam_net_mask:
105       label: CPS network mask
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS network mask
110       default: 255.255.255.0
111     oam_net_name:
112       label: OAM network name
113       hidden: false
114       immutable: false
115       type: string
116       description: OAM network name
117       default: oam_protected_net_0
118     port_net_name:
119       hidden: false
120       immutable: false
121       type: string
122   node_templates:
123     server_pcm_001:
124       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
125       directives:
126       - substitutable
127       properties:
128         port_pcm_port_1_network_role_tag: oam
129         availabilityzone_name:
130           get_input: availabilityzone_name
131         port_pcm_port_0_ip_requirements:
132         - ip_version: 4
133           ip_count_required:
134             is_required: true
135           floating_ip_count_required:
136             is_required: false
137         oam_net_gw:
138           get_input: oam_net_gw
139         pcm_image_name:
140           get_input: pcm_image_name
141         security_group_name:
142           get_input: security_group_name
143         cps_net_ip:
144           get_input:
145           - cps_net_ips
146           - 0
147         port_pcm_port_1_mac_requirements:
148           mac_count_required:
149             is_required: false
150         pcm_flavor_name:
151           get_input: pcm_flavor_name
152         service_template_filter:
153           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
154         pcm_vol:
155           get_input:
156           - pcm_volumes
157           - 0
158         port_pcm_port_1_ip_requirements:
159         - ip_version: 4
160           ip_count_required:
161             is_required: true
162           floating_ip_count_required:
163             is_required: false
164         port_pcm_port_0_network_role_tag: cps
165         port_pcm_port_0_mac_requirements:
166           mac_count_required:
167             is_required: false
168         pcm_server_name:
169           get_input:
170           - pcm_server_names
171           - 0
172         cps_net_name:
173           get_input: cps_net_name
174         cps_net_mask:
175           get_input: cps_net_mask
176         oam_net_ip:
177           get_input:
178           - oam_net_ips
179           - 0
180         oam_net_mask:
181           get_input: oam_net_mask
182         oam_net_name:
183           get_input: oam_net_name
184       requirements:
185       - dependency_pcm_port_1:
186           capability: tosca.capabilities.Node
187           node: tosca.nodes.Root
188           relationship: tosca.relationships.DependsOn
189       - link_pcm_port_1:
190           capability: tosca.capabilities.network.Linkable
191           relationship: tosca.relationships.network.LinksTo
192       - dependency_server_pcm:
193           capability: tosca.capabilities.Node
194           node: tosca.nodes.Root
195           relationship: tosca.relationships.DependsOn
196       - local_storage_server_pcm:
197           capability: tosca.capabilities.Attachment
198           node: tosca.nodes.BlockStorage
199           relationship: tosca.relationships.AttachesTo
200       - dependency_pcm_port_0:
201           capability: tosca.capabilities.Node
202           node: tosca.nodes.Root
203           relationship: tosca.relationships.DependsOn
204       - link_pcm_port_0:
205           capability: tosca.capabilities.network.Linkable
206           relationship: tosca.relationships.network.LinksTo
207     packet_mirror_network:
208       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
209       properties:
210         network_name:
211           get_input: port_net_name
212       requirements:
213       - dependency:
214           capability: tosca.capabilities.Node
215           node: server_pcm_001
216           relationship: tosca.relationships.DependsOn
217     abstract_compute:
218       type: org.openecomp.resource.abstract.nodes.compute
219       directives:
220       - substitutable
221       properties:
222         compute_compute_user_data_format:
223         - get_attribute:
224           - server_pcm_001
225           - oam_net_gw
226         compute_compute_name:
227         - compute_name: null
228         vm_flavor_name:
229           compute_flavor_name: null
230         vm_image_name:
231           get_input: compute_image_name
232         port_compute_port_network:
233         - get_input: port_net_name
234         port_compute_port_network_role_tag: port
235         compute_compute_metadata:
236         - get_attribute:
237           - server_pcm_001
238           - server_pcm_id
239         port_compute_port_mac_requirements:
240           mac_count_required:
241             is_required: false
242         port_compute_port_ip_requirements:
243         - ip_version: 4
244           ip_count_required:
245             is_required: false
246           floating_ip_count_required:
247             is_required: false
248         service_template_filter:
249           substitute_service_template: Nested_computeServiceTemplate.yaml
250           count: 1
251         index_value:
252           get_property:
253           - SELF
254           - service_template_filter
255           - index_value
256   groups:
257     hot-nimbus-pcm_v0.4_group:
258       type: org.openecomp.groups.heat.HeatStack
259       properties:
260         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
261         description: heat template that creates PCRF Cluman stack
262       members:
263       - server_pcm_001
264       - packet_mirror_network
265       - abstract_compute