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
52 description: The Availability Zone to launch the instance.
56 description: The sriov port to be used by VM1
60 description: The sriov port to be used by VM2
64 description: The sriov port to be used by VM3
69 type: OS::Neutron::Port
71 network: {get_param: internal_network}
75 type: OS::Neutron::FloatingIP
77 floating_network: {get_param: floating_network}
78 port_id: {get_resource: vm1_admin_port}
80 type: OS::Nova::Server
82 availability_zone: { get_param: availability_zone }
84 get_file: prox_user_data.sh
85 key_name: { get_param: key }
86 image: { get_param: image }
87 flavor: { get_param: flavor }
89 - port: {get_resource: vm1_admin_port}
90 - port: {get_param: vm1_sriov_port}
92 type: OS::Neutron::Port
94 network: {get_param: internal_network}
98 type: OS::Neutron::FloatingIP
100 floating_network: {get_param: floating_network}
101 port_id: {get_resource: vm2_admin_port}
103 type: OS::Nova::Server
105 availability_zone: { get_param: availability_zone }
107 get_file: prox_user_data.sh
108 key_name: { get_param: key }
109 image: { get_param: image }
110 flavor: { get_param: flavor }
112 - port: {get_resource: vm2_admin_port}
113 - port: {get_param: vm2_sriov_port}
115 type: OS::Neutron::Port
117 network: {get_param: internal_network}
121 type: OS::Neutron::FloatingIP
123 floating_network: {get_param: floating_network}
124 port_id: {get_resource: vm3_admin_port}
126 type: OS::Nova::Server
128 availability_zone: { get_param: availability_zone }
130 get_file: prox_user_data.sh
131 key_name: { get_param: key }
132 image: { get_param: image }
133 flavor: { get_param: flavor }
135 - port: {get_resource: vm3_admin_port}
136 - port: {get_param: vm3_sriov_port}
140 description: Number of VMs created by this stack
143 description: IP address of VM1 admin port
144 value: { get_attr: [vm1_admin_port, fixed_ips, 0, ip_address] }
146 description: Floating IP address of VM1 in public network
147 value: { get_attr: [ vm1_floating_ip, floating_ip_address ] }
149 description: IP address of VM1 dataplane port
150 value: { get_attr: [vm1, networks,{get_param: dataplane_network},0] }
152 description: The MAC address of VM1 dataplane port
153 value: { get_attr: [vm1, addresses, {get_param: dataplane_network}] }
155 description: IP address of VM2 admin port
156 value: { get_attr: [vm2_admin_port, fixed_ips, 0, ip_address] }
158 description: Floating IP address of VM2 in public network
159 value: { get_attr: [ vm2_floating_ip, floating_ip_address ] }
161 description: IP address of VM2 dataplane port
162 value: { get_attr: [vm2, networks,{get_param: dataplane_network},0] }
164 description: The MAC address of VM2 dataplane port
165 value: { get_attr: [vm2, addresses, {get_param: dataplane_network}]}
167 description: IP address of VM3 admin port
168 value: { get_attr: [vm3_admin_port, fixed_ips, 0, ip_address] }
170 description: Floating IP address of VM32 in public network
171 value: { get_attr: [ vm3_floating_ip, floating_ip_address ] }
173 description: IP address of VM3 dataplane port
174 value: { get_attr: [vm3, networks,{get_param: dataplane_network},0] }
176 description: The MAC address of VM3 dataplane port
177 value: { get_attr: [vm3, addresses, {get_param: dataplane_network}]}