-
Notifications
You must be signed in to change notification settings - Fork 1
/
extra_gateway.yaml
44 lines (38 loc) · 1.25 KB
/
extra_gateway.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
heat_template_version: 2016-04-08
parameters:
interface_network:
type: string
description: The external network to attach to.
internal_network:
type: string
description: network on which to deploy the cluster
internal_network_subnet:
type: string
description: subnet of network to attach to
fixed_ip:
type: string
description: fixed IP to use on the network
default: "10.2.1.254"
resources:
router:
type: OS::Neutron::Router
properties:
external_gateway_info: { network: { get_param: interface_network } }
name: { get_param: interface_network }
router_interface:
type: OS::Neutron::RouterInterface
properties:
router_id: { get_resource: router }
port: { get_resource: router_port }
router_port:
type: OS::Neutron::Port
properties:
network: { get_param: internal_network }
fixed_ips: [{ subnet: { get_param: internal_network_subnet }, ip_address: { get_param: fixed_ip } }]
security_groups: []
outputs:
gateway:
description: Internal address gateway is accessible on
value: { get_attr: [ router_port, fixed_ips, 0, ip_address ] }
gateway_snat:
value: { get_attr: [ router, external_gateway_info, external_fixed_ips, 0, ip_address] }