Merge "Remove tenant_id from nova v2.1 endpoint"
[apex-tripleo-heat-templates.git] / net-config-static-bridge.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config for a simple bridge configured
5   with a static IP address for the ctlplane network.
6
7 parameters:
8   ControlPlaneIp:
9     default: ''
10     description: IP address/subnet on the ctlplane network
11     type: string
12   ExternalIpSubnet:
13     default: ''
14     description: IP address/subnet on the external network
15     type: string
16   InternalApiIpSubnet:
17     default: ''
18     description: IP address/subnet on the internal API network
19     type: string
20   StorageIpSubnet:
21     default: ''
22     description: IP address/subnet on the storage network
23     type: string
24   StorageMgmtIpSubnet:
25     default: ''
26     description: IP address/subnet on the storage mgmt network
27     type: string
28   TenantIpSubnet:
29     default: ''
30     description: IP address/subnet on the tenant network
31     type: string
32   ManagementIpSubnet:
33     default: ''
34     description: IP address/subnet on the management network
35     type: string
36   ControlPlaneSubnetCidr: # Override this via parameter_defaults
37     default: '24'
38     description: The subnet CIDR of the control plane network.
39     type: string
40   ControlPlaneDefaultRoute: # Override this via parameter_defaults
41     description: The default route of the control plane network.
42     type: string
43   DnsServers: # Override this via parameter_defaults
44     default: []
45     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
46     type: comma_delimited_list
47   EC2MetadataIp: # Override this via parameter_defaults
48     description: The IP address of the EC2 metadata server.
49     type: string
50
51 resources:
52   OsNetConfigImpl:
53     type: OS::Heat::StructuredConfig
54     properties:
55       group: os-apply-config
56       config:
57         os_net_config:
58           network_config:
59             -
60               type: ovs_bridge
61               name: {get_input: bridge_name}
62               use_dhcp: false
63               dns_servers: {get_param: DnsServers}
64               addresses:
65                 -
66                   ip_netmask:
67                     list_join:
68                       - '/'
69                       - - {get_param: ControlPlaneIp}
70                         - {get_param: ControlPlaneSubnetCidr}
71               routes:
72                 -
73                   ip_netmask: 169.254.169.254/32
74                   next_hop: {get_param: EC2MetadataIp}
75                 -
76                   default: true
77                   next_hop: {get_param: ControlPlaneDefaultRoute}
78               members:
79                 -
80                   type: interface
81                   name: {get_input: interface_name}
82                   # force the MAC address of the bridge to this interface
83                   primary: true
84
85 outputs:
86   OS::stack_id:
87     description: The OsNetConfigImpl resource.
88     value: {get_resource: OsNetConfigImpl}