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
29 description: Name of image to use for servers
31 #nova flavor-list to query available flavors
34 description: Flavor to use for servers
36 #nova net-list to query available
40 ID or name of public network for which floating IP addresses will be allocated
46 description: Name of private network to be created
50 description: Private network address (CIDR notation)
51 default: "10.0.11.0/24"
54 description: Private network gateway address
56 private_net_pool_start:
58 description: Start of private network IP address allocation pool
62 description: End of private network IP address allocation pool
63 default: "10.0.11.199"
68 description: Name of private network to be created
69 default: bottlenecks-testing
72 description: Private network address (CIDR notation)
73 default: "10.0.20.0/24"
76 description: Private network gateway address
78 testing_net_pool_start:
80 description: Start of private network IP address allocation pool
84 description: End of private network IP address allocation pool
85 default: "10.0.20.199"
91 type: OS::Neutron::Net
93 name: { get_param: private_net_name }
95 type: OS::Neutron::Subnet
97 network_id: { get_resource: private_net }
98 cidr: { get_param: private_net_cidr }
99 gateway_ip: { get_param: private_net_gateway }
101 - start: { get_param: private_net_pool_start }
102 end: { get_param: private_net_pool_end }
106 type: OS::Neutron::Net
108 name: { get_param: testing_net_name }
110 type: OS::Neutron::Subnet
112 network_id: { get_resource: testing_net }
113 cidr: { get_param: testing_net_cidr }
114 gateway_ip: { get_param: testing_net_gateway }
116 - start: { get_param: testing_net_pool_start }
117 end: { get_param: testing_net_pool_end }
121 type: OS::Neutron::Router
123 external_gateway_info:
124 network: { get_param: public_net }
126 type: OS::Neutron::RouterInterface
128 router_id: { get_resource: router }
129 subnet_id: { get_resource: private_subnet }
132 server_security_group:
133 type: OS::Neutron::SecurityGroup
135 description: vstf group for servers access.
136 name: vstf-security-group
138 {remote_ip_prefix: 0.0.0.0/0,
141 port_range_max: 65535},
142 {remote_ip_prefix: 0.0.0.0/0,
145 port_range_max: 65535},
146 {remote_ip_prefix: 0.0.0.0/0,
149 #nova server vstf manager definition info
151 type: OS::Nova::Server
154 image: { get_param: image_vstf_manager }
155 flavor: { get_param: flavor }
156 key_name: { get_param: key_name }
158 - port: { get_resource: manager_control_port }
159 manager_control_port:
160 type: OS::Neutron::Port
162 network_id: { get_resource: private_net }
164 - subnet_id: { get_resource: private_subnet }
165 security_groups: [{ get_resource: server_security_group }]
166 manager_control_floating_ip:
167 type: OS::Neutron::FloatingIP
169 floating_network: { get_param: public_net }
170 port_id: { get_resource: manager_control_port }
172 #nova server vstf target definition info
174 type: OS::Nova::Server
177 image: { get_param: image_vstf_target }
178 flavor: { get_param: flavor }
179 key_name: { get_param: key_name }
181 - port: { get_resource: target_control_port }
182 - port: { get_resource: target_testing_port }
184 type: OS::Neutron::Port
186 network_id: { get_resource: private_net }
188 - subnet_id: { get_resource: private_subnet }
189 security_groups: [{ get_resource: server_security_group }]
191 type: OS::Neutron::Port
193 network_id: { get_resource: testing_net }
195 - subnet_id: { get_resource: testing_subnet }
196 security_groups: [{ get_resource: server_security_group }]
197 target_control_floating_ip:
198 type: OS::Neutron::FloatingIP
200 floating_network: { get_param: public_net }
201 port_id: { get_resource: target_control_port }
203 #nova server vstf tester definition info
205 type: OS::Nova::Server
208 image: { get_param: image_vstf_tester }
209 flavor: { get_param: flavor }
210 key_name: { get_param: key_name }
212 - port: { get_resource: tester_control_port }
213 - port: { get_resource: tester_testing_port }
215 type: OS::Neutron::Port
217 network_id: { get_resource: private_net }
219 - subnet_id: { get_resource: private_subnet }
220 security_groups: [{ get_resource: server_security_group }]
222 type: OS::Neutron::Port
224 network_id: { get_resource: testing_net }
226 - subnet_id: { get_resource: testing_subnet }
227 security_groups: [{ get_resource: server_security_group }]
228 tester_control_floating_ip:
229 type: OS::Neutron::FloatingIP
231 floating_network: { get_param: public_net }
232 port_id: { get_resource: tester_control_port }
235 manager_control_private_ip:
236 description: IP address of manager_control in private network
237 value: { get_attr: [ vstf-manager, first_address ] }
238 manager_control_public_ip:
239 description: Floating IP address of manager_control in public network
240 value: { get_attr: [ manager_control_floating_ip, floating_ip_address ] }
241 target_control_private_ip:
242 description: IP address of manager_control in private network
243 value: { get_attr: [ vstf-target, first_address ] }
244 target_control_public_ip:
245 description: Floating IP address of manager_control in public network
246 value: { get_attr: [ target_control_floating_ip, floating_ip_address ] }
247 tester_control_private_ip:
248 description: IP address of manager_control in private network
249 value: { get_attr: [ vstf-tester, first_address ] }
250 tester_control_public_ip:
251 description: Floating IP address of manager_control in public network
252 value: { get_attr: [ tester_control_floating_ip, floating_ip_address ] }