heat_template_version: 2013-05-23 description: Simple template to deploy a single compute instance parameters: image: type: string label: Image name or ID description: Image to be used for compute instance default: cirros-0.3.3-x86_64 flavor: type: string label: Flavor description: Type of instance (flavor) to be used default: m1.small key: type: string label: Key name description: Name of key-pair to be used for compute instance default: my_key private_network: type: string label: Private network name or ID description: Network to attach instance to. default: private-net resources: my_instance: type: OS::Nova::Server properties: image: { get_param: image } flavor: { get_param: flavor } key_name: { get_param: key } networks: - network: { get_param: private_network } user_data: | #!/bin/sh echo "Hello, World!" user_data_format: RAW outputs: instance_name: description: Name of the instance value: { get_attr: [my_instance, name] } instance_ip: description: IP address of the instance value: { get_attr: [my_instance, first_address] }