Skip to content

Instantly share code, notes, and snippets.

@nherbaut
Created February 1, 2016 13:00
Show Gist options
  • Select an option

  • Save nherbaut/65ff039d710cc63d5a2e to your computer and use it in GitHub Desktop.

Select an option

Save nherbaut/65ff039d710cc63d5a2e to your computer and use it in GitHub Desktop.
description: Template to deploy one instance with a private network developed on the
spot
heat_template_version: '2014-10-16'
parameters:
availability_zone: {default: 'nova:cnode3', description: The Availability Zone to
launch the instance., type: string}
flavor: {default: m1.medium, description: flavor to be used, label: flavor, type: string}
image: {default: 16cd76bb-af7d-46b9-b208-79dadbd45eca, description: Image to be used for compute instance, label: Image
name or ID, type: string}
public_net: {default: 121ad8e8-a656-4baf-a306-9b88db8de2a8, description: Id of the
public network for the compute server, type: string}
router: {default: 76ea5925-0d3a-4989-8f64-ae06199b5465, description: Id of the router,
type: string}
sub_public_net: {default: 6f559284-4f19-4d0d-a9a3-1af55a821ab0, description: Id
of the public subnet, type: string}
resources:
data_net:
properties: {name: data}
type: OS::Neutron::Net
data_subnet:
properties:
cidr: 10.10.112.0/24
dns_nameservers: [8.8.8.8]
network_id: {get_resource: data_net}
type: OS::Neutron::Subnet
floating_ip1:
properties:
floating_network_id: {get_param: public_net}
port_id: {get_resource: port1}
type: OS::Neutron::FloatingIP
instance1:
properties:
availability_zone: {get_param: availability_zone}
flavor: {get_param: flavor}
image: {get_param: image}
name: vHG
networks:
- network: {get_resource: mngt_net}
- network: {get_resource: data_net}
- port: {get_resource: port1}
type: OS::Nova::Server
mngt_net:
properties: {name: mngt}
type: OS::Neutron::Net
mngt_subnet:
properties:
cidr: 10.10.110.0/24
dns_nameservers: [8.8.8.8]
network_id: {get_resource: mngt_net}
type: OS::Neutron::Subnet
port1:
properties:
fixed_ips:
- subnet_id: {get_resource: data_subnet}
network_id: {get_resource: data_net}
type: OS::Neutron::Port
router-interface:
properties:
router_id: {get_param: router}
subnet: {get_resource: data_subnet}
type: OS::Neutron::RouterInterface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment