Fixing resources path in OpenDaylight
[apex-tripleo-heat-templates.git] / network / management.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Management network. System administration, SSH, DNS, NTP, etc. This network
5   would usually be the default gateway for the non-controller nodes.
6
7 parameters:
8   # the defaults here work for static IP assignment (IPAM) only
9   ManagementNetCidr:
10     default: '10.0.1.0/24'
11     description: Cidr for the management network.
12     type: string
13   ManagementNetValueSpecs:
14     default: {'provider:physical_network': 'management', 'provider:network_type': 'flat'}
15     description: Value specs for the management network.
16     type: json 
17   ManagementNetAdminStateUp:
18     default: false
19     description: The admin state of the network.
20     type: boolean
21   ManagementNetEnableDHCP:
22     default: false
23     description: Whether to enable DHCP on the associated subnet.
24     type: boolean
25   ManagementNetShared:
26     default: false
27     description: Whether this network is shared across all tenants.
28     type: boolean
29   ManagementNetName:
30     default: management
31     description: The name of the management network.
32     type: string
33   ManagementSubnetName:
34     default: management_subnet
35     description: The name of the management subnet in Neutron.
36     type: string
37   ManagementAllocationPools:
38     default: [{'start': '10.0.1.4', 'end': '10.0.1.250'}]
39     description: Ip allocation pool range for the management network.
40     type: json
41
42 resources:
43   ManagementNetwork:
44     type: OS::Neutron::Net
45     properties:
46       admin_state_up: {get_param: ManagementNetAdminStateUp}
47       name: {get_param: ManagementNetName}
48       shared: {get_param: ManagementNetShared}
49       value_specs: {get_param: ManagementNetValueSpecs}
50
51   ManagementSubnet:
52     type: OS::Neutron::Subnet
53     properties:
54       cidr: {get_param: ManagementNetCidr}
55       enable_dhcp: {get_param: ManagementNetEnableDHCP}
56       name: {get_param: ManagementSubnetName}
57       network: {get_resource: ManagementNetwork}
58       allocation_pools: {get_param: ManagementAllocationPools}
59
60 outputs:
61   OS::stack_id:
62     description: Neutron management network
63     value: {get_resource: ManagementNetwork}
64