-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.yaml
57 lines (51 loc) · 1.35 KB
/
template.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
57
heat_template_version: 2016-10-14
parameters:
image:
type: string
count:
type: string
default: 2
public_network:
type: string
default: public-net
whitelist_ip:
type: string
default: 202.78.240.7
resources:
router:
type: OS::Neutron::Router
properties:
external_gateway_info:
network: {get_param: public_network}
network:
type: OS::Neutron::Net
properties:
admin_state_up: true
security_group:
type: OS::Neutron::SecurityGroup
properties:
rules:
- protocol: tcp
port_range_min: 0
port_range_max: 65535
remote_ip_prefix:
list_join: ["/", [{get_param: whitelist_ip},"32"]]
- protocol: udp
port_range_min: 0
port_range_max: 65535
remote_ip_prefix:
list_join: ["/", [{get_param: whitelist_ip},"32"]]
resource_group:
type: OS::Heat::ResourceGroup
properties:
count: { get_param: count }
resource_def:
type: OS::LB::Server
properties:
index: "%index%"
network: { get_resource: network }
security_group: { get_resource: security_group }
image: { get_param: image }
router: { get_resource: router }
whitelist_ip: { get_param: whitelist_ip }
public_network: { get_param: public_network }