Merge "Reorder modifiers"
[so.git] / packages / arquillian-unit-tests / src / test / resources / resource-examples / asdc / simpleNotif-V2 / artifacts / nested-ppd_v1.0.yaml
1 heat_template_version: 2013-05-23\r
2 \r
3 description: heat template that creates PCRF Policy Director stack\r
4 \r
5 parameters:\r
6   pcrf_ppd_server_name:\r
7     type: string\r
8     label: PCRF PD server name\r
9     description: PCRF PD server name\r
10   pcrf_ppd_image_name:\r
11     type: string\r
12     label: image name\r
13     description: PCRF PD image name\r
14   pcrf_ppd_flavor_name:\r
15     type: string\r
16     label: PCRF PD flavor name\r
17     description: flavor name of PCRF PD instance\r
18   availabilityzone_name:\r
19     type: string\r
20     label: availabilityzone name\r
21     description: availabilityzone name\r
22   pcrf_cps_net_name:\r
23     type: string\r
24     label: CPS network name\r
25     description: CPS network name\r
26   pcrf_cps_net_ip:\r
27     type: string\r
28     label: CPS network ip\r
29     description: CPS network ip\r
30   pcrf_cps_net_mask:\r
31     type: string\r
32     label: CPS network mask\r
33     description: CPS network mask\r
34   pcrf_lb_internal_vip:\r
35     type: string\r
36     label: CPS Internal LB VIP\r
37     description: CPS Internal LB VIP\r
38   pcrf_oam_net_name:\r
39     type: string\r
40     label: OAM network name\r
41     description: OAM network name\r
42   pcrf_oam_net_ip:\r
43     type: string\r
44     label: OAM network ip\r
45     description: OAM network ip\r
46   pcrf_oam_net_gw:\r
47     type: string\r
48     label: CPS network gateway\r
49     description: CPS network gateway\r
50   pcrf_oam_net_mask:\r
51     type: string\r
52     label: CPS network mask\r
53     description: CPS network mask\r
54   pcrf_lb_management_vip:\r
55     type: string\r
56     label: CPS OAM LB VIP\r
57     description: CPS OAM LB VIP\r
58   pcrf_gx_net_name:\r
59     type: string\r
60     label: Gx network name\r
61     description: Gx network name\r
62   pcrf_gx_net_ip:\r
63     type: string\r
64     label: Gx network ip\r
65     description: Gx network ip\r
66   pcrf_gx_net_mask:\r
67     type: string\r
68     label: Gx network mask\r
69     description: Gx network mask\r
70   pcrf_sp_net_name:\r
71     type: string\r
72     label: Sp network name\r
73     description: Sp network name\r
74   pcrf_sp_net_ip:\r
75     type: string\r
76     label: Sp network ip\r
77     description: Sp network ip\r
78   pcrf_sp_net_mask:\r
79     type: string\r
80     label: Sp network mask\r
81     description: Sp network mask\r
82   pcrf_sy_net_name:\r
83     type: string\r
84     label: Sy network name\r
85     description: Sy network name\r
86   pcrf_sy_net_ip:\r
87     type: string\r
88     label: Sy network ip\r
89     description: Sy network ip\r
90   pcrf_sy_net_mask:\r
91     type: string\r
92     label: Sy network mask\r
93     description: Sy network mask\r
94   pcrf_rx_net_name:\r
95     type: string\r
96     label: Rx network name\r
97     description: Rx network name\r
98   pcrf_rx_net_ip:\r
99     type: string\r
100     label: Rx network ip\r
101     description: Rx network ip\r
102   pcrf_rx_net_mask:\r
103     type: string\r
104     label: Rx network mask\r
105     description: Rx network mask\r
106   pcrf_sd_net_name:\r
107     type: string\r
108     label: Sd network name\r
109     description: Sd network name\r
110   pcrf_sd_net_ip:\r
111     type: string\r
112     label: Sd network ip\r
113     description: Sd network ip\r
114   pcrf_sd_net_mask:\r
115     type: string\r
116     label: Sd network mask\r
117     description: Sd network mask\r
118   pcrf_sgi_sy_net_name:\r
119     type: string\r
120     label: Sgi Sy network name\r
121     description: Sgi Sy network name\r
122   pcrf_sgi_sy_net_ip:\r
123     type: string\r
124     label: Sgi Sy network ip\r
125     description: Sgi Sy network ip\r
126   pcrf_sgi_sy_net_mask:\r
127     type: string\r
128     label: Sgi Sy network mask\r
129     description: Sgi Sy network mask\r
130   pcrf_security_group_name:\r
131     type: string\r
132     label: security group name\r
133     description: the name of security group\r
134   pcrf_vnf_id:\r
135     type: string\r
136     label: PCRF VNF Id\r
137     description: PCRF VNF Id\r
138 \r
139 resources:\r
140   network:\r
141     type: OS::Heat::CloudConfig\r
142     properties:\r
143       cloud_config:\r
144         write_files:\r
145           - path: /etc/sysconfig/network-scripts/ifcfg-eth0\r
146             permissions: "0644"\r
147             content:\r
148               str_replace:\r
149                 template: { get_file: nimbus-ethernet }\r
150                 params:\r
151                   $dev: eth0\r
152                   $ip: { get_param: pcrf_cps_net_ip }\r
153                   $netmask: { get_param: pcrf_cps_net_mask }\r
154           - path: /etc/sysconfig/network-scripts/ifcfg-eth1\r
155             permissions: "0644"\r
156             content:\r
157               str_replace:\r
158                 template: { get_file: nimbus-ethernet-gw }\r
159                 params:\r
160                   $dev: eth1\r
161                   $ip: { get_param: pcrf_oam_net_ip }\r
162                   $netmask: { get_param: pcrf_oam_net_mask }\r
163                   $gateway: { get_param: pcrf_oam_net_gw }\r
164           - path: /etc/sysconfig/network-scripts/ifcfg-eth2\r
165             permissions: "0644"\r
166             content:\r
167               str_replace:\r
168                 template: { get_file: nimbus-ethernet }\r
169                 params:\r
170                   $dev: eth2\r
171                   $ip: { get_param: pcrf_gx_net_ip }\r
172                   $netmask: { get_param: pcrf_gx_net_mask }\r
173           - path: /etc/sysconfig/network-scripts/ifcfg-eth3\r
174             permissions: "0644"\r
175             content:\r
176               str_replace:\r
177                 template: { get_file: nimbus-ethernet }\r
178                 params:\r
179                   $dev: eth3\r
180                   $ip: { get_param: pcrf_sp_net_ip }\r
181                   $netmask: { get_param: pcrf_sp_net_mask }\r
182           - path: /etc/sysconfig/network-scripts/ifcfg-eth4\r
183             permissions: "0644"\r
184             content:\r
185               str_replace:\r
186                 template: { get_file: nimbus-ethernet }\r
187                 params:\r
188                   $dev: eth4\r
189                   $ip: { get_param: pcrf_sy_net_ip }\r
190                   $netmask: { get_param: pcrf_sy_net_mask }\r
191           - path: /etc/sysconfig/network-scripts/ifcfg-eth5\r
192             permissions: "0644"\r
193             content:\r
194               str_replace:\r
195                 template: { get_file: nimbus-ethernet }\r
196                 params:\r
197                   $dev: eth5\r
198                   $ip: { get_param: pcrf_rx_net_ip }\r
199                   $netmask: { get_param: pcrf_rx_net_mask }\r
200           - path: /etc/sysconfig/network-scripts/ifcfg-eth6\r
201             permissions: "0644"\r
202             content:\r
203               str_replace:\r
204                 template: { get_file: nimbus-ethernet }\r
205                 params:\r
206                   $dev: eth6\r
207                   $ip: { get_param: pcrf_sd_net_ip }\r
208                   $netmask: { get_param: pcrf_sd_net_mask }\r
209           - path: /etc/sysconfig/network-scripts/ifcfg-eth7\r
210             permissions: "0644"\r
211             content:\r
212               str_replace:\r
213                 template: { get_file: nimbus-ethernet }\r
214                 params:\r
215                   $dev: eth7\r
216                   $ip: { get_param: pcrf_sgi_sy_net_ip }\r
217                   $netmask: { get_param: pcrf_sgi_sy_net_mask }\r
218         runcmd:\r
219           - ifdown eth0 && ifup eth0\r
220           - ifdown eth1 && ifup eth1\r
221           - ifdown eth2 && ifup eth2\r
222           - ifdown eth3 && ifup eth3\r
223           - ifdown eth4 && ifup eth4\r
224           - ifdown eth5 && ifup eth5\r
225           - ifdown eth6 && ifup eth6\r
226           - ifdown eth7 && ifup eth7\r
227   script_init:\r
228     type: OS::Heat::SoftwareConfig\r
229     properties:\r
230       group: ungrouped\r
231       config:\r
232         str_replace:\r
233           template: { get_file: cloud-nimbus.sh }\r
234           params:\r
235             $vm_name: { get_param: pcrf_ppd_server_name }\r
236   pcrf_server_init:\r
237     type: OS::Heat::MultipartMime\r
238     properties:\r
239       parts:\r
240       - config: { get_resource: network}\r
241       - config: { get_resource: script_init}\r
242 \r
243   pcrf_server_ppd: \r
244     type: OS::Nova::Server\r
245     properties:\r
246       config_drive: "True"\r
247       name: { get_param: pcrf_ppd_server_name }\r
248       image: { get_param: pcrf_ppd_image_name }\r
249       flavor: { get_param: pcrf_ppd_flavor_name }\r
250       availability_zone: { get_param: availabilityzone_name }\r
251       networks:\r
252         - port: { get_resource: pcrf_ppd_port_0}\r
253         - port: { get_resource: pcrf_ppd_port_1}\r
254         - port: { get_resource: pcrf_ppd_port_2}\r
255         - port: { get_resource: pcrf_ppd_port_3}\r
256         - port: { get_resource: pcrf_ppd_port_4}\r
257         - port: { get_resource: pcrf_ppd_port_5}\r
258         - port: { get_resource: pcrf_ppd_port_6}\r
259         - port: { get_resource: pcrf_ppd_port_7}\r
260       user_data_format: RAW\r
261       user_data:\r
262         get_resource: pcrf_server_init\r
263       metadata:\r
264         vnf_id: {get_param: pcrf_vnf_id}\r
265 \r
266   pcrf_ppd_port_0:\r
267     type: OS::Neutron::Port\r
268     properties:\r
269       network: { get_param: pcrf_cps_net_name }\r
270       fixed_ips:\r
271         - ip_address: { get_param: pcrf_cps_net_ip }\r
272       security_groups: [{ get_param: pcrf_security_group_name }]\r
273       allowed_address_pairs:\r
274         - ip_address: { get_param: pcrf_lb_internal_vip }\r
275 \r
276   pcrf_ppd_port_1:\r
277     type: OS::Neutron::Port\r
278     properties:\r
279       network: { get_param: pcrf_oam_net_name }\r
280       fixed_ips:\r
281         - ip_address: { get_param: pcrf_oam_net_ip }\r
282       security_groups: [{ get_param: pcrf_security_group_name }]\r
283       allowed_address_pairs:\r
284         - ip_address: { get_param: pcrf_lb_management_vip } \r
285  \r
286   pcrf_ppd_port_2:\r
287     type: OS::Neutron::Port\r
288     properties:\r
289       network: { get_param: pcrf_gx_net_name }\r
290       fixed_ips:\r
291         - ip_address: { get_param: pcrf_gx_net_ip }\r
292       security_groups: [{ get_param: pcrf_security_group_name }]\r
293 \r
294   pcrf_ppd_port_3:\r
295     type: OS::Neutron::Port\r
296     properties:\r
297       network: { get_param: pcrf_sp_net_name }\r
298       fixed_ips:\r
299         - ip_address: { get_param: pcrf_sp_net_ip }\r
300       security_groups: [{ get_param: pcrf_security_group_name }]\r
301 \r
302   pcrf_ppd_port_4:\r
303     type: OS::Neutron::Port\r
304     properties:\r
305       network: { get_param: pcrf_sy_net_name }\r
306       fixed_ips:\r
307         - ip_address: { get_param: pcrf_sy_net_ip }\r
308       security_groups: [{ get_param: pcrf_security_group_name }]\r
309 \r
310   pcrf_ppd_port_5:\r
311     type: OS::Neutron::Port\r
312     properties:\r
313       network: { get_param: pcrf_rx_net_name }\r
314       fixed_ips:\r
315         - ip_address: { get_param: pcrf_rx_net_ip }\r
316       security_groups: [{ get_param: pcrf_security_group_name }]\r
317   \r
318   pcrf_ppd_port_6:\r
319     type: OS::Neutron::Port\r
320     properties:\r
321       network: { get_param: pcrf_sd_net_name }\r
322       fixed_ips:\r
323         - ip_address: { get_param: pcrf_sd_net_ip }\r
324       security_groups: [{ get_param: pcrf_security_group_name }]\r
325 \r
326   pcrf_ppd_port_7:\r
327     type: OS::Neutron::Port\r
328     properties:\r
329       network: { get_param: pcrf_sgi_sy_net_name }\r
330       fixed_ips:\r
331         - ip_address: { get_param: pcrf_sgi_sy_net_ip }\r
332       security_groups: [{ get_param: pcrf_security_group_name }]\r
333 \r