1 #Template for instances.
2 heat_template_version: 2017-02-24
3 description: "template instantiating and configuring a single instance (any)"
28 #Condition for demo network connection
32 - get_param: demo_network
36 #This is the network port to attach instance to.
38 type: OS::Neutron::Port
40 network: { get_param: network }
41 security_groups: [ { get_param: security_group } ]
43 - { subnet: { get_param: subnet }}
44 #cloudinit configuration stuff.
46 type: OS::Heat::SoftwareConfig
50 template: { get_file: config.yaml }
52 "%{NOTIFY_COMMAND}": { get_param: notify_command }
53 #Actual instance to create.
55 type: OS::Nova::Server
57 name: { get_param: instance_name }
58 image: { get_param: image_name }
59 flavor: { get_param: flavor_name }
60 key_name: { get_param: key_name }
65 - - port: { get_resource: port }
66 - network: { get_param: demo_network }
67 - - port: { get_resource: port }
68 user_data_format: SOFTWARE_CONFIG
69 user_data: { get_resource: config }
70 scheduler_hints: { get_param: scheduler_hints }
73 value: { get_resource: instance }
75 value: { get_resource: port }
77 value: { get_attr: ["port", "fixed_ips", 0, "ip_address"] }