Created
May 1, 2014 16:51
-
-
Save scottslowe/1ed38b586a1751138c8d to your computer and use it in GitHub Desktop.
This Heat template, provided in HOT format using YAML, launches a multi-instance topology using a logical network and a logical router with an uplink.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heat_template_version: 2013-05-23 | |
description: > | |
A simple Heat template that spins up multiple instances and a private network (HOT template in YAML). | |
resources: | |
heat_network_01: | |
type: OS::Neutron::Net | |
properties: | |
admin_state_up: true | |
name: heat-network-01 | |
heat_subnet_01: | |
type: OS::Neutron::Subnet | |
properties: | |
name: heat-subnet-01 | |
cidr: 10.10.10.0/24 | |
dns_nameservers: [172.16.1.11, 172.16.1.6] | |
enable_dhcp: true | |
gateway_ip: 10.10.10.254 | |
network_id: { get_resource: heat_network_01 } | |
heat_router_01: | |
type: OS::Neutron::Router | |
properties: | |
admin_state_up: true | |
name: heat-router-01 | |
heat_router_01_gw: | |
type: OS::Neutron::RouterGateway | |
properties: | |
network_id: 604146b3-2e0c-4399-826e-a18cbc18362b | |
router_id: { get_resource: heat_router_01 } | |
heat_router_int0: | |
type: OS::Neutron::RouterInterface | |
properties: | |
router_id: { get_resource: heat_router_01 } | |
subnet_id: { get_resource: heat_subnet_01 } | |
instance0_port0: | |
type: OS::Neutron::Port | |
properties: | |
admin_state_up: true | |
network_id: { get_resource: heat_network_01 } | |
security_groups: | |
- b0ab35c3-63f0-48d2-8a6b-08364a026b9c | |
instance1_port0: | |
type: OS::Neutron::Port | |
properties: | |
admin_state_up: true | |
network_id: { get_resource: heat_network_01 } | |
security_groups: | |
- b0ab35c3-63f0-48d2-8a6b-08364a026b9c | |
instance0: | |
type: OS::Nova::Server | |
properties: | |
name: heat-instance-01 | |
image: 01b0eb5d-14ae-4c9e-8025-a21e6f733034 | |
flavor: m1.xsmall | |
networks: | |
- port: { get_resource: instance0_port0 } | |
instance1: | |
type: OS::Nova::Server | |
properties: | |
name: heat-instance-02 | |
image: 01b0eb5d-14ae-4c9e-8025-a21e6f733034 | |
flavor: m1.xsmall | |
networks: | |
- port: { get_resource: instance1_port0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment