Merge "Make CephStorageDeployment depend on NetworkDeployment"
[apex-tripleo-heat-templates.git] / network / external.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   External network. Public traffic, Neutron l3router for floating IPs/SNAT, etc.
5
6 parameters:
7   # the defaults here work for static IP assignment (IPAM) only
8   ExternalNetCidr:
9     default: '10.0.0.0/24'
10     description: Cidr for the external network.
11     type: string
12   ExternalNetValueSpecs:
13     default: {'provider:physical_network': 'external', 'provider:network_type': 'flat'}
14     description: Value specs for the external network.
15     type: string
16   ExternalNetAdminStateUp:
17     default: false
18     description: This admin state of of the network.
19     type: boolean
20   ExternalNetEnableDHCP:
21     default: false
22     description: Whether to enable DHCP on the associated subnet.
23     type: boolean
24   ExternalNetShared:
25     default: false
26     description: Whether this network is shared across all tenants.
27     type: boolean
28   ExternalNetName:
29     default: external
30     description: The name of the external network.
31     type: string
32   ExternalSubnetName:
33     default: external_subnet
34     description: The name of the external subnet in Neutron.
35     type: string
36   ExternalAllocationPools:
37     default: [{'start': '10.0.0.4', 'end': '10.0.0.250'}]
38     description: Ip allocation pool range for the external network.
39     type: json
40
41 resources:
42   ExternalNetwork:
43     type: OS::Neutron::Net
44     properties:
45       admin_state_up: {get_param: ExternalNetAdminStateUp}
46       name: {get_param: ExternalNetName}
47       shared: {get_param: ExternalNetShared}
48       value_specs: {get_param: ExternalNetValueSpecs}
49
50   ExternalSubnet:
51     type: OS::Neutron::Subnet
52     properties:
53       cidr: {get_param: ExternalNetCidr}
54       enable_dhcp: {get_param: ExternalNetEnableDHCP}
55       name: {get_param: ExternalSubnetName}
56       network: {get_resource: ExternalNetwork}
57       allocation_pools: {get_resource: ExternalAllocationPools}
58
59 outputs:
60   OS::stack_id:
61     description: Neutron external network
62     value: {get_resource: ExternalNetwork}