1 heat_template_version: 2013-05-23
3 description: heat template that creates PCRF Policy Director stack
8 label: PCRF PD server name
9 description: PCRF PD server name
13 description: PCRF PD image name
16 label: PCRF PD flavor name
17 description: flavor name of PCRF PD instance
18 availabilityzone_name:
20 label: availabilityzone name
21 description: availabilityzone name
24 label: CPS network name
25 description: CPS network name
29 description: CPS network ip
32 label: CPS network mask
33 description: CPS network mask
36 label: CPS Internal LB VIP
37 description: CPS Internal LB VIP
40 label: OAM network name
41 description: OAM network name
45 description: OAM network ip
48 label: CPS network gateway
49 description: CPS network gateway
52 label: CPS network mask
53 description: CPS network mask
54 pcrf_lb_management_vip:
57 description: CPS OAM LB VIP
60 label: Gx network name
61 description: Gx network name
65 description: Gx network ip
68 label: Gx network mask
69 description: Gx network mask
72 label: Sp network name
73 description: Sp network name
77 description: Sp network ip
80 label: Sp network mask
81 description: Sp network mask
84 label: Sy network name
85 description: Sy network name
89 description: Sy network ip
92 label: Sy network mask
93 description: Sy network mask
96 label: Rx network name
97 description: Rx network name
101 description: Rx network ip
104 label: Rx network mask
105 description: Rx network mask
108 label: Sd network name
109 description: Sd network name
113 description: Sd network ip
116 label: Sd network mask
117 description: Sd network mask
118 pcrf_sgi_sy_net_name:
120 label: Sgi Sy network name
121 description: Sgi Sy network name
124 label: Sgi Sy network ip
125 description: Sgi Sy network ip
126 pcrf_sgi_sy_net_mask:
128 label: Sgi Sy network mask
129 description: Sgi Sy network mask
130 pcrf_security_group_name:
132 label: security group name
133 description: the name of security group
137 description: PCRF VNF Id
141 type: OS::Heat::CloudConfig
145 - path: /etc/sysconfig/network-scripts/ifcfg-eth0
149 template: { get_file: nimbus-ethernet }
152 $ip: { get_param: pcrf_cps_net_ip }
153 $netmask: { get_param: pcrf_cps_net_mask }
154 - path: /etc/sysconfig/network-scripts/ifcfg-eth1
158 template: { get_file: nimbus-ethernet-gw }
161 $ip: { get_param: pcrf_oam_net_ip }
162 $netmask: { get_param: pcrf_oam_net_mask }
163 $gateway: { get_param: pcrf_oam_net_gw }
164 - path: /etc/sysconfig/network-scripts/ifcfg-eth2
168 template: { get_file: nimbus-ethernet }
171 $ip: { get_param: pcrf_gx_net_ip }
172 $netmask: { get_param: pcrf_gx_net_mask }
173 - path: /etc/sysconfig/network-scripts/ifcfg-eth3
177 template: { get_file: nimbus-ethernet }
180 $ip: { get_param: pcrf_sp_net_ip }
181 $netmask: { get_param: pcrf_sp_net_mask }
182 - path: /etc/sysconfig/network-scripts/ifcfg-eth4
186 template: { get_file: nimbus-ethernet }
189 $ip: { get_param: pcrf_sy_net_ip }
190 $netmask: { get_param: pcrf_sy_net_mask }
191 - path: /etc/sysconfig/network-scripts/ifcfg-eth5
195 template: { get_file: nimbus-ethernet }
198 $ip: { get_param: pcrf_rx_net_ip }
199 $netmask: { get_param: pcrf_rx_net_mask }
200 - path: /etc/sysconfig/network-scripts/ifcfg-eth6
204 template: { get_file: nimbus-ethernet }
207 $ip: { get_param: pcrf_sd_net_ip }
208 $netmask: { get_param: pcrf_sd_net_mask }
209 - path: /etc/sysconfig/network-scripts/ifcfg-eth7
213 template: { get_file: nimbus-ethernet }
216 $ip: { get_param: pcrf_sgi_sy_net_ip }
217 $netmask: { get_param: pcrf_sgi_sy_net_mask }
219 - ifdown eth0 && ifup eth0
220 - ifdown eth1 && ifup eth1
221 - ifdown eth2 && ifup eth2
222 - ifdown eth3 && ifup eth3
223 - ifdown eth4 && ifup eth4
224 - ifdown eth5 && ifup eth5
225 - ifdown eth6 && ifup eth6
226 - ifdown eth7 && ifup eth7
228 type: OS::Heat::SoftwareConfig
233 template: { get_file: cloud-nimbus.sh }
235 $vm_name: { get_param: pcrf_ppd_server_name }
237 type: OS::Heat::MultipartMime
240 - config: { get_resource: network}
241 - config: { get_resource: script_init}
244 type: OS::Nova::Server
247 name: { get_param: pcrf_ppd_server_name }
248 image: { get_param: pcrf_ppd_image_name }
249 flavor: { get_param: pcrf_ppd_flavor_name }
250 availability_zone: { get_param: availabilityzone_name }
252 - port: { get_resource: pcrf_ppd_port_0}
253 - port: { get_resource: pcrf_ppd_port_1}
254 - port: { get_resource: pcrf_ppd_port_2}
255 - port: { get_resource: pcrf_ppd_port_3}
256 - port: { get_resource: pcrf_ppd_port_4}
257 - port: { get_resource: pcrf_ppd_port_5}
258 - port: { get_resource: pcrf_ppd_port_6}
259 - port: { get_resource: pcrf_ppd_port_7}
260 user_data_format: RAW
262 get_resource: pcrf_server_init
264 vnf_id: {get_param: pcrf_vnf_id}
267 type: OS::Neutron::Port
269 network: { get_param: pcrf_cps_net_name }
271 - ip_address: { get_param: pcrf_cps_net_ip }
272 security_groups: [{ get_param: pcrf_security_group_name }]
273 allowed_address_pairs:
274 - ip_address: { get_param: pcrf_lb_internal_vip }
277 type: OS::Neutron::Port
279 network: { get_param: pcrf_oam_net_name }
281 - ip_address: { get_param: pcrf_oam_net_ip }
282 security_groups: [{ get_param: pcrf_security_group_name }]
283 allowed_address_pairs:
284 - ip_address: { get_param: pcrf_lb_management_vip }
287 type: OS::Neutron::Port
289 network: { get_param: pcrf_gx_net_name }
291 - ip_address: { get_param: pcrf_gx_net_ip }
292 security_groups: [{ get_param: pcrf_security_group_name }]
295 type: OS::Neutron::Port
297 network: { get_param: pcrf_sp_net_name }
299 - ip_address: { get_param: pcrf_sp_net_ip }
300 security_groups: [{ get_param: pcrf_security_group_name }]
303 type: OS::Neutron::Port
305 network: { get_param: pcrf_sy_net_name }
307 - ip_address: { get_param: pcrf_sy_net_ip }
308 security_groups: [{ get_param: pcrf_security_group_name }]
311 type: OS::Neutron::Port
313 network: { get_param: pcrf_rx_net_name }
315 - ip_address: { get_param: pcrf_rx_net_ip }
316 security_groups: [{ get_param: pcrf_security_group_name }]
319 type: OS::Neutron::Port
321 network: { get_param: pcrf_sd_net_name }
323 - ip_address: { get_param: pcrf_sd_net_ip }
324 security_groups: [{ get_param: pcrf_security_group_name }]
327 type: OS::Neutron::Port
329 network: { get_param: pcrf_sgi_sy_net_name }
331 - ip_address: { get_param: pcrf_sgi_sy_net_ip }
332 security_groups: [{ get_param: pcrf_security_group_name }]