-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathwebserver.yaml
40 lines (35 loc) · 1 KB
/
webserver.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
heat_template_version: 2015-10-15
description: template to create a server instance
parameters:
server_image:
type: string
label: Image name or ID
description: Image to be used for compute instance
server_flavor:
type: string
label: Flavor
description: Type of flavor to be used
server_key:
type: string
label: Key name
description: Name of key-pair to be used for compute instance
server_network:
type: string
label: Private network name or ID
description: Network to attach instance to.
resources:
server:
type: OS::Nova::Server
properties:
image: { get_param: server_image }
flavor: { get_param: server_flavor }
key_name: { get_param: server_key }
networks:
- network: { get_param: server_network }
outputs:
server_name:
description: Name of the server instance
value: { get_attr: [server, name] }
server_address:
description: IP address of the server instance
value: { get_attr: [server, first_address] }