1 heat_template_version: 2013-05-23
\r
3 description: heat template that creates PCRF Cluman stack
\r
6 pcrf_pcm_server_name:
\r
8 label: PCRF CM server name
\r
9 description: PCRF CM server name
\r
10 pcrf_pcm_image_name:
\r
13 description: PCRF CM image name
\r
14 pcrf_pcm_flavor_name:
\r
16 label: PCRF CM flavor name
\r
17 description: flavor name of PCRF CM 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 network name
\r
37 description: OAM network name
\r
40 label: OAM network ip
\r
41 description: OAM network ip
\r
44 label: CPS network gateway
\r
45 description: CPS network gateway
\r
48 label: CPS network mask
\r
49 description: CPS network mask
\r
52 label: CPS Cluman Cinder Volume
\r
53 description: CPS Cluman Cinder Volume
\r
54 pcrf_security_group_name:
\r
56 label: security group name
\r
57 description: the name of security group
\r
61 description: PCRF VNF Id
\r
65 type: OS::Heat::CloudConfig
\r
69 - path: /etc/sysconfig/network-scripts/ifcfg-eth0
\r
73 template: { get_file: nimbus-ethernet }
\r
76 $ip: { get_param: pcrf_cps_net_ip }
\r
77 $netmask: { get_param: pcrf_cps_net_mask }
\r
78 - path: /etc/sysconfig/network-scripts/ifcfg-eth1
\r
82 template: { get_file: nimbus-ethernet-gw }
\r
85 $ip: { get_param: pcrf_oam_net_ip }
\r
86 $netmask: { get_param: pcrf_oam_net_mask }
\r
87 $gateway: { get_param: pcrf_oam_net_gw }
\r
89 - ifdown eth0 && ifup eth0
\r
90 - ifdown eth1 && ifup eth1
\r
92 type: OS::Heat::SoftwareConfig
\r
97 template: { get_file: cloud-nimbus.sh }
\r
99 $vm_name: { get_param: pcrf_pcm_server_name }
\r
101 type: OS::Heat::MultipartMime
\r
104 - config: { get_resource: network}
\r
105 - config: { get_resource: script_init}
\r
108 type: OS::Nova::Server
\r
110 config_drive: "True"
\r
111 name: { get_param: pcrf_pcm_server_name }
\r
112 image: { get_param: pcrf_pcm_image_name }
\r
113 flavor: { get_param: pcrf_pcm_flavor_name }
\r
114 availability_zone: { get_param: availabilityzone_name }
\r
116 - port: { get_resource: pcrf_pcm_port_0}
\r
117 - port: { get_resource: pcrf_pcm_port_1}
\r
118 user_data_format: RAW
\r
120 get_resource: pcrf_server_init
\r
122 vnf_id: {get_param: pcrf_vnf_id}
\r
125 type: OS::Neutron::Port
\r
127 network: { get_param: pcrf_cps_net_name }
\r
129 - ip_address: { get_param: pcrf_cps_net_ip }
\r
130 security_groups: [{ get_param: pcrf_security_group_name }]
\r
133 type: OS::Neutron::Port
\r
135 network: { get_param: pcrf_oam_net_name }
\r
137 - ip_address: { get_param: pcrf_oam_net_ip }
\r
138 security_groups: [{ get_param: pcrf_security_group_name }]
\r
141 type: OS::Cinder::VolumeAttachment
\r
143 volume_id: { get_param: pcrf_pcm_volume_id }
\r
144 mountpoint: /dev/vdd
\r
145 instance_uuid: { get_resource: pcrf_server_pcm }
\r
148 pcrf_server_pcm_id:
\r
149 description: the pcm server id
\r
150 value: { get_resource: pcrf_server_pcm }