Comment 3 for bug 1314401

Revision history for this message
Steven Hardy (shardy) wrote :

shtmp.yaml:

heat_template_version: 2013-05-23

parameters:
  key_name:
    type: string
    description: keypair to enable SSH access to the instance.
    constraints:
      - custom_constraint: nova.keypair

  instance_type:
    type: string
    description: Type of the instance to be created.
    default: m1.small

  image_id:
    type: string
    description: ID of the image to use for the instance to be created.

resources:
  instance:
    type: OS::Nova::Server
    properties:
      image: { get_param: image_id }
      flavor: { get_param: instance_type }
      key_name: { get_param: key_name }