Skip to content
Snippets Groups Projects
headNode.yaml 1.28 KiB
Newer Older
--- 
description: " A simple template to boot a 3 node cluster"
heat_template_version: 2013-05-23
parameters:
 image_id:
  type: string
  label: Image ID
  description: Image to be used for compute instance
  default: a5e74703-f343-415a-aa23-bd0f0aacfc9e
 key_name:
  type: string
  label: Key Name
  description: Name of key-pair to be used for compute instance
  default: shahaan
 availability_z:
  type: string
  label: Availability Zone
  description: Availability Zone to be used for launching compute instance
  default: monash-01
resources:
  headNode:
   type: "OS::Nova::Server"
   properties:
    availability_zone: { get_param: availability_z }
    flavor: m1.small
    image: { get_param: image_id }
    key_name: { get_param: key_name }
Shahaan Ayyub's avatar
Shahaan Ayyub committed
    security_groups: [OpenVPN, NSF, default]
    metadata:
     ansible_host_group: headNode
     ansible_ssh_user: ec2-user
     ansible_ssh_private_key_file: /home/sgeadmin/.ssh/shahaan.pem
  headVolume:
   type: OS::Cinder::Volume
   properties:
    availability_zone: { get_param: availability_z }
    description: Volume that will attach the headNode
    name: headNodeVolume
    size: 50
  volumeAttachment:
   type: OS::Cinder::VolumeAttachment
   properties:
    instance_uuid: { get_resource: headNode }
    volume_id: { get_resource: headVolume }