-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmulti_server.yaml
43 lines (36 loc) · 1.05 KB
/
multi_server.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
heat_template_version: 2014-10-16
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: CentOS 7 (PVHVM) (Orchestration)
flavor:
type: string
label: Flavor
description: Type of instance (flavor) to be used
default: 1 GB General Purpose v1
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 }
outputs:
public_ip:
description: public IP address of the deployed compute instance
value: { get_attr: [compute_instance, accessIPv4] }