2 ## Copyright (c) 2010-2017 Intel Corporation
4 ## Licensed under the Apache License, Version 2.0 (the "License");
5 ## you may not use this file except in compliance with the License.
6 ## You may obtain a copy of the License at
8 ## http://www.apache.org/licenses/LICENSE-2.0
10 ## Unless required by applicable law or agreed to in writing, software
11 ## distributed under the License is distributed on an "AS IS" BASIS,
12 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ## See the License for the specific language governing permissions and
14 ## limitations under the License.
17 heat_template_version: 2016-04-08
18 description: RAPID stack (Rapid Automated Performance Indication for Dataplane)
22 label: Image name or ID
23 description: Image to be used for compute instance
28 description: Type of instance (flavor) to be used
33 description: Name of key-pair to be used for compute instance
37 label: Private network name or ID
38 description: Network to attach instance to.
39 default: dataplane-network
42 label: Private network name or ID
43 description: Network to attach instance to.
44 default: admin_internal_net
47 label: Floating network name or ID
48 description: Public Network to attach instance to.
49 default: admin_floating_net
50 vm1_availability_zone:
52 description: The Availability Zone to launch the instance.
54 vm2_availability_zone:
56 description: The Availability Zone to launch the instance.
58 vm3_availability_zone:
60 description: The Availability Zone to launch the instance.
64 description: The sriov port to be used by VM1
68 description: The sriov port to be used by VM2
72 description: The sriov port to be used by VM3
77 type: OS::Neutron::Port
79 network: {get_param: internal_network}
83 type: OS::Neutron::FloatingIP
85 floating_network: {get_param: floating_network}
86 port_id: {get_resource: vm1_admin_port}
88 type: OS::Nova::Server
90 availability_zone: { get_param: vm1_availability_zone }
92 get_file: prox_user_data.sh
93 key_name: { get_param: key }
94 image: { get_param: image }
95 flavor: { get_param: flavor }
97 - port: {get_resource: vm1_admin_port}
98 - port: {get_param: vm1_sriov_port}
100 type: OS::Neutron::Port
102 network: {get_param: internal_network}
106 type: OS::Neutron::FloatingIP
108 floating_network: {get_param: floating_network}
109 port_id: {get_resource: vm2_admin_port}
111 type: OS::Nova::Server
113 availability_zone: { get_param: vm2_availability_zone }
115 get_file: prox_user_data.sh
116 key_name: { get_param: key }
117 image: { get_param: image }
118 flavor: { get_param: flavor }
120 - port: {get_resource: vm2_admin_port}
121 - port: {get_param: vm2_sriov_port}
123 type: OS::Neutron::Port
125 network: {get_param: internal_network}
129 type: OS::Neutron::FloatingIP
131 floating_network: {get_param: floating_network}
132 port_id: {get_resource: vm3_admin_port}
134 type: OS::Nova::Server
136 availability_zone: { get_param: vm3_availability_zone }
138 get_file: prox_user_data.sh
139 key_name: { get_param: key }
140 image: { get_param: image }
141 flavor: { get_param: flavor }
143 - port: {get_resource: vm3_admin_port}
144 - port: {get_param: vm3_sriov_port}
148 description: Number of VMs created by this stack
151 description: IP address of VM1 admin port
152 value: { get_attr: [vm1_admin_port, fixed_ips, 0, ip_address] }
154 description: Floating IP address of VM1 in public network
155 value: { get_attr: [ vm1_floating_ip, floating_ip_address ] }
157 description: IP address of VM1 dataplane port
158 value: { get_attr: [vm1, networks,{get_param: dataplane_network},0] }
160 description: The MAC address of VM1 dataplane port
161 value: { get_attr: [vm1, addresses, {get_param: dataplane_network}] }
163 description: IP address of VM2 admin port
164 value: { get_attr: [vm2_admin_port, fixed_ips, 0, ip_address] }
166 description: Floating IP address of VM2 in public network
167 value: { get_attr: [ vm2_floating_ip, floating_ip_address ] }
169 description: IP address of VM2 dataplane port
170 value: { get_attr: [vm2, networks,{get_param: dataplane_network},0] }
172 description: The MAC address of VM2 dataplane port
173 value: { get_attr: [vm2, addresses, {get_param: dataplane_network}]}
175 description: IP address of VM3 admin port
176 value: { get_attr: [vm3_admin_port, fixed_ips, 0, ip_address] }
178 description: Floating IP address of VM3 in public network
179 value: { get_attr: [ vm3_floating_ip, floating_ip_address ] }
181 description: IP address of VM3 dataplane port
182 value: { get_attr: [vm3, networks,{get_param: dataplane_network},0] }
184 description: The MAC address of VM3 dataplane port
185 value: { get_attr: [vm3, addresses, {get_param: dataplane_network}]}