Skip to content

Instantly share code, notes, and snippets.

@krenz444
Created December 10, 2015 16:54
Show Gist options
  • Save krenz444/0019eb1bcc4ec839391a to your computer and use it in GitHub Desktop.
Save krenz444/0019eb1bcc4ec839391a to your computer and use it in GitHub Desktop.
description: Template to deploy redStack
heat_template_version: '2013-05-23'
parameters:
image:
default: RHEL_6.5_2014r3_base5_Vagrant
description: Image to be used for compute instance
label: Image ID or Name
type: string
private_network:
default: 0a69b471-3afb-4922-9b7a-4d35f20d8183
description: Network to attach instance to
label: Private Network ID
type: string
private_subnet:
default: 9e9e3e4c-83e5-48dd-af9b-629297463daa
description: ID of the private sub network for the compute server
label: Private Sub Network ID
type: string
public_network:
default: 3dd12451-d7f4-49fc-84ea-acfbcab71e9a
description: Network to attach instance to
label: Public Network ID
type: string
volume_size:
default: 51
description: Size of volume to attach to instance
type: number
resources:
floating_ip_redstackadmi1:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackadmi1 }
type: OS::Neutron::FloatingIP
floating_ip_redstackadmi2:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackadmi2 }
type: OS::Neutron::FloatingIP
floating_ip_redstackambari:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackambari }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat0:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat0 }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat1:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat1 }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat2:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat2 }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat3:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat3 }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat4:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat4 }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat5:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat5 }
type: OS::Neutron::FloatingIP
floating_ip_redstackdat6:
properties:
floating_network_id: { get_param: public_network }
port_id: { get_resource: public_port_redstackdat6 }
type: OS::Neutron::FloatingIP
public_port_redstackadmi1:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackadmi2:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackambari:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat0:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat1:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat2:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat3:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat4:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat5:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
public_port_redstackdat6:
properties:
fixed_ips:
- subnet_id: { get_param: private_subnet }
network_id: { get_param: private_network }
type: OS::Neutron::Port
redstackadmi1:
depends_on: redstackambari
properties:
flavor: lmem-8vcpu
image: { get_param: image }
name: redstackadmi1
networks:
- port: { get_resource: public_port_redstackadmi1 }
type: OS::Nova::Server
redstackadmi2:
depends_on: redstackadmi1
properties:
flavor: lmem-8vcpu
image: { get_param: image }
name: redstackadmi2
networks:
- port: { get_resource: public_port_redstackadmi2 }
type: OS::Nova::Server
redstackambari:
properties:
flavor: lmem-8vcpu
image: { get_param: image }
name: redstackambari
networks:
- port: { get_resource: public_port_redstackambari }
type: OS::Nova::Server
redstackdat0:
depends_on: redstackadmi2
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat0
networks:
- port: { get_resource: public_port_redstackdat0 }
type: OS::Nova::Server
redstackdat1:
depends_on: redstackdat0
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat1
networks:
- port: { get_resource: public_port_redstackdat1 }
type: OS::Nova::Server
redstackdat2:
depends_on: redstackdat1
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat2
networks:
- port: { get_resource: public_port_redstackdat2 }
type: OS::Nova::Server
redstackdat3:
depends_on: redstackdat2
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat3
networks:
- port: { get_resource: public_port_redstackdat3 }
type: OS::Nova::Server
redstackdat4:
depends_on: redstackdat3
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat4
networks:
- port: { get_resource: public_port_redstackdat4 }
type: OS::Nova::Server
redstackdat5:
depends_on: redstackdat4
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat5
networks:
- port: { get_resource: public_port_redstackdat5 }
type: OS::Nova::Server
redstackdat6:
depends_on: redstackdat5
properties:
flavor: mmem-4vcpu
image: { get_param: image }
name: redstackdat6
networks:
- port: { get_resource: public_port_redstackdat6 }
type: OS::Nova::Server
volume_attachment_redstackadmi1:
depends_on: redstackadmi1
properties:
instance_uuid: { get_resource: redstackadmi1 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackadmi1 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackadmi2:
depends_on: redstackadmi2
properties:
instance_uuid: { get_resource: redstackadmi2 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackadmi2 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackambari:
depends_on: redstackambari
properties:
instance_uuid: { get_resource: redstackambari }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackambari }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat0:
depends_on: redstackdat0
properties:
instance_uuid: { get_resource: redstackdat0 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat0 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat1:
depends_on: redstackdat1
properties:
instance_uuid: { get_resource: redstackdat1 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat1 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat2:
depends_on: redstackdat2
properties:
instance_uuid: { get_resource: redstackdat2 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat2 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat3:
depends_on: redstackdat3
properties:
instance_uuid: { get_resource: redstackdat3 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat3 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat4:
depends_on: redstackdat4
properties:
instance_uuid: { get_resource: redstackdat4 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat4 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat5:
depends_on: redstackdat5
properties:
instance_uuid: { get_resource: redstackdat5 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat5 }
type: OS::Cinder::VolumeAttachment
volume_attachment_redstackdat6:
depends_on: redstackdat6
properties:
instance_uuid: { get_resource: redstackdat6 }
mountpoint: /dev/vdb
volume_id: { get_resource: volume_redstackdat6 }
type: OS::Cinder::VolumeAttachment
volume_redstackadmi1:
properties:
name: volume_redstackadmi1
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackadmi2:
properties:
name: volume_redstackadmi2
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackambari:
properties:
name: volume_redstackambari
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat0:
properties:
name: volume_redstackdat0
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat1:
properties:
name: volume_redstackdat1
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat2:
properties:
name: volume_redstackdat2
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat3:
properties:
name: volume_redstackdat3
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat4:
properties:
name: volume_redstackdat4
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat5:
properties:
name: volume_redstackdat5
size: { get_param: volume_size }
type: OS::Cinder::Volume
volume_redstackdat6:
properties:
name: volume_redstackdat6
size: { get_param: volume_size }
type: OS::Cinder::Volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment