-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.yaml
56 lines (51 loc) · 1.39 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
heat_template_version: 2021-04-16
parameters:
flavor:
type: string
image:
type: string
availability_zone:
type: string
subnet:
type: string
secgroup:
type: string
wc_notify:
type: string
pool:
type: string
host_port:
type: number
api_branch:
type: string
logstash_host:
type: string
environment:
type: string
resources:
cloud_init:
type: cloud-init.yaml
properties:
logstash_host: { get_param: logstash_host }
api_branch: { get_param: api_branch }
wc_notify: { get_param: wc_notify }
environment: { get_param: environment }
server:
type: OS::Nova::Server
properties:
flavor: { get_param: flavor }
image: { get_param: image }
availability_zone: { get_param: availability_zone }
networks:
- { subnet: { get_param: subnet }}
security_groups:
- { get_param: secgroup }
user_data_format: SOFTWARE_CONFIG
user_data:
get_attr: [cloud_init, cloud_config]
pool_member:
type: OS::Octavia::PoolMember
properties:
pool: { get_param: pool }
address: { get_attr: [server, first_address] }
protocol_port: { get_param: host_port }