forked from miguelgrinberg/heat-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
/
heat_4a.yaml
56 lines (50 loc) · 1.49 KB
/
heat_4a.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
heat_template_version: 2013-05-23
description: Template that installs a simple test server.
parameters:
image:
type: string
label: Image name or ID
description: Image to be used for server. Please use an Ubuntu based image.
default: trusty-server-cloudimg-amd64
flavor:
type: string
label: Flavor
description: Type of instance (flavor) to be used on the compute instance.
default: m1.small
key:
type: string
label: Key name
description: Name of key-pair to be installed on the compute instance.
default: my_key
public_network:
type: string
label: Public network name or ID
description: Public network to attach server to.
default: public
dns:
type: comma_delimited_list
label: DNS nameservers
description: Comma separated list of DNS nameservers for the private network.
default: '8.8.8.8'
resources:
network:
type: Lib::RH::PrivateNetwork
properties:
public_network: { get_param: public_network }
dns: { get_param: dns }
tiny_instance:
type: Lib::RH::Tiny
properties:
image: { get_param: image }
flavor: { get_param: flavor }
key: { get_param: key }
private_network: { get_attr: [network, name] }
floating_ip:
type: Lib::RH::FloatingIP
properties:
port: { get_attr: [tiny_instance, port] }
public_network: { get_param: public_network }
outputs:
ip:
description: The public IP address to access the server.
value: { get_attr: [floating_ip, ip] }