1 heat_template_version: 2013-05-23
\r
3 description: nested heat template that creates a PCRF OAM node stack
\r
6 pcrf_oam_server_name:
\r
8 label: PCRF OAM server name
\r
9 description: PCRF OAM server name
\r
10 pcrf_oam_image_name:
\r
13 description: PCRF OAM image name
\r
14 pcrf_oam_flavor_name:
\r
16 label: PCRF OAM flavor name
\r
17 description: flavor name of PCRF OAM instance
\r
18 availabilityzone_name:
\r
20 label: availabilityzone name
\r
21 description: availabilityzone name
\r
24 label: CPS network name
\r
25 description: CPS network name
\r
28 label: CPS network ip
\r
29 description: CPS network ip
\r
32 label: CPS network mask
\r
33 description: CPS network mask
\r
36 label: OAM Arbiter LB VIP
\r
37 description: OAM Arbiter LB VIP
\r
40 label: OAM network name
\r
41 description: OAM network name
\r
44 label: OAM network ip
\r
45 description: OAM network ip
\r
48 label: CPS network gateway
\r
49 description: CPS network gateway
\r
52 label: CPS network mask
\r
53 description: CPS network mask
\r
56 label: CPS OAM Cinder Volume
\r
57 description: CPS OAM Cinder Volume
\r
58 pcrf_security_group_name:
\r
60 label: security group name
\r
61 description: the name of security group
\r
65 description: PCRF VNF Id
\r
69 type: OS::Heat::CloudConfig
\r
73 - path: /etc/sysconfig/network-scripts/ifcfg-eth0
\r
77 template: { get_file: nimbus-ethernet }
\r
80 $ip: { get_param: pcrf_cps_net_ip }
\r
81 $netmask: { get_param: pcrf_cps_net_mask }
\r
82 - path: /etc/sysconfig/network-scripts/ifcfg-eth1
\r
86 template: { get_file: nimbus-ethernet-gw }
\r
89 $ip: { get_param: pcrf_oam_net_ip }
\r
90 $netmask: { get_param: pcrf_oam_net_mask }
\r
91 $gateway: { get_param: pcrf_oam_net_gw }
\r
93 - ifdown eth0 && ifup eth0
\r
94 - ifdown eth1 && ifup eth1
\r
96 type: OS::Heat::SoftwareConfig
\r
101 template: { get_file: cloud-nimbus.sh }
\r
103 $vm_name: { get_param: pcrf_oam_server_name }
\r
105 type: OS::Heat::MultipartMime
\r
108 - config: { get_resource: network}
\r
109 - config: { get_resource: script_init}
\r
112 type: OS::Nova::Server
\r
114 config_drive: "True"
\r
115 name: { get_param: pcrf_oam_server_name }
\r
116 image: { get_param: pcrf_oam_image_name }
\r
117 flavor: { get_param: pcrf_oam_flavor_name }
\r
118 availability_zone: { get_param: availabilityzone_name }
\r
120 - port: { get_resource: pcrf_oam_port_0}
\r
121 - port: { get_resource: pcrf_oam_port_1}
\r
122 user_data_format: RAW
\r
124 get_resource: pcrf_server_init
\r
126 vnf_id: {get_param: pcrf_vnf_id}
\r
129 type: OS::Neutron::Port
\r
131 network: { get_param: pcrf_cps_net_name }
\r
133 - ip_address: { get_param: pcrf_cps_net_ip }
\r
134 allowed_address_pairs:
\r
135 - ip_address: { get_param: pcrf_arbiter_vip }
\r
136 security_groups: [{ get_param: pcrf_security_group_name }]
\r
139 type: OS::Neutron::Port
\r
141 network: { get_param: pcrf_oam_net_name }
\r
143 - ip_address: { get_param: pcrf_oam_net_ip }
\r
144 security_groups: [{ get_param: pcrf_security_group_name }]
\r
146 pcrf_oam_vol_attachment:
\r
147 type: OS::Cinder::VolumeAttachment
\r
149 volume_id: { get_param: pcrf_oam_volume_id }
\r
150 mountpoint: /dev/vdd
\r
151 instance_uuid: { get_resource: pcrf_server_oam }
\r
154 pcrf_oam_vol_attachment_id:
\r
155 description: the pcrf_oam_vol_attachment_id id
\r
156 value: { get_resource: pcrf_oam_vol_attachment }
\r