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: 2013-05-23
23 - custom_constraint: neutron.network
30 description: Size of the volume to be created.
33 - range: { min: 1, max: 1024 }
34 description: must be between 1 and 1024 Gb.
39 - range: { min: 1, max: 512 }
40 description: must be between 1 and 512 agents.
51 type: OS::Heat::ResourceGroup
52 depends_on: [subnet, network_router_interface,
53 open_security_group, key_pair]
55 count: {get_param: agent_count}
59 public_network: {get_param: public_network},
60 agent_network: {get_resource: network},
61 flavor: {get_param: agent_flavor},
62 image: {get_param: agent_image},
63 availability_zone: {get_param: availability_zone},
64 open_security_group: {get_resource: open_security_group},
65 key_name: {get_resource: key_pair},
66 volume_size: {get_param: volume_size}
71 type: OS::Neutron::Net
73 name: { get_param: network_name }
76 type: OS::Neutron::Subnet
78 network_id: { get_resource: network }
80 gateway_ip: 172.16.0.1
83 type: OS::Neutron::Router
85 external_gateway_info:
86 network: { get_param: public_network }
88 network_router_interface:
89 type: OS::Neutron::RouterInterface
91 router_id: { get_resource: network_router }
92 subnet_id: { get_resource: subnet }
95 type: OS::Nova::KeyPair
97 save_private_key: true
98 name: { get_param: key_name }
101 type: OS::Neutron::SecurityGroup
103 description: An open security group to allow all access to the slaves
105 - remote_ip_prefix: 0.0.0.0/0
109 - remote_ip_prefix: 0.0.0.0/0
114 description: "Slave addresses",
115 value: { get_attr: [ slaves, agent_ip] }
118 description: "SSH Private Key"
119 value: { get_attr: [ key_pair, private_key ]}