Last active
December 1, 2016 08:10
-
-
Save aaronmehar/fb62e1c828dc2c7232597555b2d77855 to your computer and use it in GitHub Desktop.
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: 2016-04-08 | |
parameters: | |
ssh_keypair_name: | |
description: Nova keypair name for ssh access to the server | |
type: string | |
ssh_private_key: | |
description: private key to access the created servers | |
type: string | |
nodeflavour: | |
description: Flavor for Cloud Servers | |
type: string | |
nodeimage: | |
description: Operating system to use for your server. | |
type: string | |
bricksize: | |
description: Size of each disk for GlusterFS to use as a brick | |
type: number | |
server_name: | |
description: The name of the server | |
type: string | |
stack_id: | |
description: Stack ID | |
type: string | |
glusternetwork: | |
type: string | |
description: Network Name for internode communications | |
glustersubnet: | |
type: string | |
description: Subnet used for the Gluster Network resources | |
resources: | |
glusternode: | |
type: OS::Nova::Server | |
properties: | |
name: { get_param: server_name } | |
flavor: { get_param: nodeflavour } | |
image: { get_param: nodeimage } | |
key_name: { get_param: ssh_keypair_name } | |
metadata: | |
rax-heat: { get_param: "stack_id" } | |
networks: | |
- network: { get_param: glusternetwork } | |
- network: 00000000-0000-0000-0000-000000000000 | |
- network: 11111111-1111-1111-1111-111111111111 | |
gluster_brick_volume: | |
type: OS::Cinder::Volume | |
properties: | |
volume_type: SSD | |
size: { get_param: bricksize } | |
gluster_brick_attachment: | |
type: OS::Cinder::VolumeAttachment | |
properties: | |
volume_id: { get_resource: gluster_brick_volume } | |
instance_uuid: { get_resource: glusternode } | |
outputs: | |
glusternode_ip: | |
value: { get_attr: [glusternode, accessIPv4] } | |
glusternode_private_ip: | |
value: { get_attr: [glusternode, networks, private, 0] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment