1 ##############################################################################
2 # Copyright (c) 2017 Cable Television Laboratories, Inc. ("CableLabs")
3 # and others. All rights reserved.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 ##############################################################################
17 heat_template_version: 2015-04-30
19 description: Simple template to deploy a single compute instance
25 description: Image to be used for compute instance
26 default: heat_utils_tests
30 description: Type of instance (flavor) to be used
34 label: Test network name
35 description: The name of the stack's network
39 label: Test subnet name
40 description: The name of the stack's subnet
45 description: The name of the spawned vm
50 type: OS::Neutron::Net
52 name: { get_param: net_name }
55 type: OS::Neutron::Subnet
57 name: { get_param: subnet_name }
58 network_id: { get_resource: private_net }
62 type: OS::Neutron::Port
64 network_id: { get_resource: private_net }
66 - subnet_id: { get_resource: private_subnet }
69 type: OS::Nova::Server
71 name: { get_param: inst_name }
72 image: { get_param: image_name }
73 flavor: { get_param: flavor_name }
75 - port: { get_resource: server1_port }