-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01_test_stack.yaml
More file actions
52 lines (46 loc) · 1.27 KB
/
01_test_stack.yaml
File metadata and controls
52 lines (46 loc) · 1.27 KB
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
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.4-x86_64
flavor:
type: string
label: Flavor
description: Type of instance (flavor) to be used
default: m1.tiny
network:
type: string
label: Private network name or ID
description: Network to attach instance to.
default: nova
resources:
server01:
type: OS::Nova::Server
properties:
image: { get_param: image }
flavor: { get_param: flavor }
networks:
- network: { get_param: network }
server02:
type: OS::Nova::Server
properties:
image: { get_param: image }
flavor: { get_param: flavor }
networks:
- network: { get_param: network }
server02_Volume:
type: OS::Cinder::Volume
properties:
size: 1
server02_Volume_att:
type: OS::Cinder::VolumeAttachment
properties:
instance_uuid: { get_resource: server02 }
volume_id: { get_resource: server02_Volume }
outputs:
instance_ip:
description: IP address of the instance
value: { get_attr: [server01, first_address],get_attr: [server02, first_address] }