/
private-net-create.yaml
54 lines (43 loc) · 1.21 KB
/
private-net-create.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
heat_template_version: 2015-04-30
# Template which creates a private network which is routed to an external
# network.
parameters:
external_net:
type: string
description: An external network for the private network to route to
private_net:
type: string
description: Name of private network
private_net_cidr:
type: string
description: CIDR for private network subnet
default: 10.0.1.0/24
dns_nameservers:
default: ["8.8.8.8", ]
description: List of DNS servers for the private network
type: comma_delimited_list
resources:
network:
type: OS::Neutron::Net
properties:
name: {get_param: private_net}
subnet:
type: OS::Neutron::Subnet
properties:
network: {get_resource: network}
name: {get_param: private_net}
cidr: {get_param: private_net_cidr}
dns_nameservers: {get_param: dns_nameservers}
router:
type: OS::Neutron::Router
properties:
external_gateway_info:
network: {get_param: external_net}
router_interface:
type: OS::Neutron::RouterInterface
properties:
router: {get_resource: router}
subnet: {get_resource: subnet}
outputs:
private_net:
value: {get_param: private_net}