1 heat_template_version: 2013-05-23
3 This template is used for creating a new environment on the Openstack Release L ,
4 and the deployment will create three virtual machine on the compute node, one manager
5 and two agent vm included. Each vm will has a nic on the controlplane switch and two
6 agent vms will has a additional nic on the dataplane.
8 #nova keypair-list to query available key pair
11 description: Name of keypair to assign to servers
13 #nova image-list to query available images
16 description: Name of image to use for servers
17 default: bottlenecks-trusty-server
18 #new addition image for the actual deployment
21 description: Name of image to use for servers
25 description: Name of image to use for servers
27 #nova flavor-list to query available flavors
30 description: Flavor to use for servers
32 #nova net-list to query available
36 ID or name of public network for which floating IP addresses will be allocated
42 description: Name of private network to be created
46 description: Private network address (CIDR notation)
47 default: "10.0.11.0/24"
50 description: Private network gateway address
52 private_net_pool_start:
54 description: Start of private network IP address allocation pool
58 description: End of private network IP address allocation pool
59 default: "10.0.11.199"
64 description: Name of private network to be created
65 default: bottlenecks-testing
68 description: Private network address (CIDR notation)
69 default: "10.0.20.0/24"
72 description: Private network gateway address
74 testing_net_pool_start:
76 description: Start of private network IP address allocation pool
80 description: End of private network IP address allocation pool
81 default: "10.0.20.199"
87 type: OS::Neutron::Net
89 name: { get_param: private_net_name }
91 type: OS::Neutron::Subnet
93 network_id: { get_resource: private_net }
94 cidr: { get_param: private_net_cidr }
95 gateway_ip: { get_param: private_net_gateway }
97 - start: { get_param: private_net_pool_start }
98 end: { get_param: private_net_pool_end }
102 type: OS::Neutron::Net
104 name: { get_param: testing_net_name }
106 type: OS::Neutron::Subnet
108 network_id: { get_resource: testing_net }
109 cidr: { get_param: testing_net_cidr }
110 gateway_ip: { get_param: testing_net_gateway }
112 - start: { get_param: testing_net_pool_start }
113 end: { get_param: testing_net_pool_end }
117 type: OS::Neutron::Router
119 external_gateway_info:
120 network: { get_param: public_net }
122 type: OS::Neutron::RouterInterface
124 router_id: { get_resource: router }
125 subnet_id: { get_resource: private_subnet }
128 server_security_group:
129 type: OS::Neutron::SecurityGroup
131 description: vstf group for servers access.
132 name: vstf-security-group
134 {remote_ip_prefix: 0.0.0.0/0,
137 port_range_max: 65535},
138 {remote_ip_prefix: 0.0.0.0/0,
141 port_range_max: 65535},
142 {remote_ip_prefix: 0.0.0.0/0,
145 #nova server vstf manager definition info
147 type: OS::Nova::Server
150 image: { get_param: image_vstf_manager }
151 flavor: { get_param: flavor }
152 key_name: { get_param: key_name }
154 - port: { get_resource: manager_control_port }
155 manager_control_port:
156 type: OS::Neutron::Port
158 network_id: { get_resource: private_net }
160 - subnet_id: { get_resource: private_subnet }
161 security_groups: [{ get_resource: server_security_group }]
162 manager_control_floating_ip:
163 type: OS::Neutron::FloatingIP
165 floating_network: { get_param: public_net }
166 port_id: { get_resource: manager_control_port }
168 #nova server vstf target definition info
170 type: OS::Nova::Server
173 image: { get_param: image_vstf_agent }
174 flavor: { get_param: flavor }
175 key_name: { get_param: key_name }
177 - port: { get_resource: target_control_port }
178 - port: { get_resource: target_testing_port }
180 type: OS::Neutron::Port
182 network_id: { get_resource: private_net }
184 - subnet_id: { get_resource: private_subnet }
185 security_groups: [{ get_resource: server_security_group }]
187 type: OS::Neutron::Port
189 network_id: { get_resource: testing_net }
191 - subnet_id: { get_resource: testing_subnet }
192 security_groups: [{ get_resource: server_security_group }]
193 target_control_floating_ip:
194 type: OS::Neutron::FloatingIP
196 floating_network: { get_param: public_net }
197 port_id: { get_resource: target_control_port }
199 #nova server vstf tester definition info
201 type: OS::Nova::Server
204 image: { get_param: image_vstf_agent }
205 flavor: { get_param: flavor }
206 key_name: { get_param: key_name }
208 - port: { get_resource: tester_control_port }
209 - port: { get_resource: tester_testing_port }
211 type: OS::Neutron::Port
213 network_id: { get_resource: private_net }
215 - subnet_id: { get_resource: private_subnet }
216 security_groups: [{ get_resource: server_security_group }]
218 type: OS::Neutron::Port
220 network_id: { get_resource: testing_net }
222 - subnet_id: { get_resource: testing_subnet }
223 security_groups: [{ get_resource: server_security_group }]
224 tester_control_floating_ip:
225 type: OS::Neutron::FloatingIP
227 floating_network: { get_param: public_net }
228 port_id: { get_resource: tester_control_port }
231 manager_control_private_ip:
232 description: IP address of manager_control in private network
233 value: { get_attr: [ vstf-manager, first_address ] }
234 manager_control_public_ip:
235 description: Floating IP address of manager_control in public network
236 value: { get_attr: [ manager_control_floating_ip, floating_ip_address ] }
237 target_control_private_ip:
238 description: IP address of manager_control in private network
239 value: { get_attr: [ vstf-target, first_address ] }
240 target_control_public_ip:
241 description: Floating IP address of manager_control in public network
242 value: { get_attr: [ target_control_floating_ip, floating_ip_address ] }
243 tester_control_private_ip:
244 description: IP address of manager_control in private network
245 value: { get_attr: [ vstf-tester, first_address ] }
246 tester_control_public_ip:
247 description: Floating IP address of manager_control in public network
248 value: { get_attr: [ tester_control_floating_ip, floating_ip_address ] }