Merge "Fixup the memcached servers string in nova.conf for v6"
[apex-tripleo-heat-templates.git] / network / config / multiple-nics / controller-v6.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config to configure multiple interfaces
5   for the controller role with IPv6 on the External network. The IPv6
6   default route is on the External network, and the IPv4 default route
7   is on the Control Plane.
8
9 parameters:
10   ControlPlaneIp:
11     default: ''
12     description: IP address/subnet on the ctlplane network
13     type: string
14   ExternalIpSubnet:
15     default: ''
16     description: IP address/subnet on the external network
17     type: string
18   InternalApiIpSubnet:
19     default: ''
20     description: IP address/subnet on the internal API network
21     type: string
22   StorageIpSubnet:
23     default: ''
24     description: IP address/subnet on the storage network
25     type: string
26   StorageMgmtIpSubnet:
27     default: ''
28     description: IP address/subnet on the storage mgmt network
29     type: string
30   TenantIpSubnet:
31     default: ''
32     description: IP address/subnet on the tenant network
33     type: string
34   ManagementIpSubnet: # Only populated when including environments/network-management.yaml
35     default: ''
36     description: IP address/subnet on the management network
37     type: string
38   ExternalNetworkVlanID:
39     default: 10
40     description: Vlan ID for the external network traffic.
41     type: number
42   InternalApiNetworkVlanID:
43     default: 20
44     description: Vlan ID for the internal_api network traffic.
45     type: number
46   StorageNetworkVlanID:
47     default: 30
48     description: Vlan ID for the storage network traffic.
49     type: number
50   StorageMgmtNetworkVlanID:
51     default: 40
52     description: Vlan ID for the storage mgmt network traffic.
53     type: number
54   TenantNetworkVlanID:
55     default: 50
56     description: Vlan ID for the tenant network traffic.
57     type: number
58   ManagementNetworkVlanID:
59     default: 60
60     description: Vlan ID for the management network traffic.
61     type: number
62   ExternalInterfaceDefaultRoute:
63     default: '10.0.0.1'
64     description: default route for the external network
65     type: string
66   ControlPlaneSubnetCidr: # Override this via parameter_defaults
67     default: '24'
68     description: The subnet CIDR of the control plane network.
69     type: string
70   ControlPlaneDefaultRoute: # Override this via parameter_defaults
71     description: The default route of the control plane network.
72     type: string
73   DnsServers: # Override this via parameter_defaults
74     default: []
75     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
76     type: comma_delimited_list
77   EC2MetadataIp: # Override this via parameter_defaults
78     description: The IP address of the EC2 metadata server.
79     type: string
80
81 resources:
82   OsNetConfigImpl:
83     type: OS::Heat::StructuredConfig
84     properties:
85       group: os-apply-config
86       config:
87         os_net_config:
88           network_config:
89             -
90               type: interface
91               name: nic1
92               use_dhcp: false
93               dns_servers: {get_param: DnsServers}
94               addresses:
95                 -
96                   ip_netmask:
97                     list_join:
98                       - '/'
99                       - - {get_param: ControlPlaneIp}
100                         - {get_param: ControlPlaneSubnetCidr}
101               routes:
102                 -
103                   ip_netmask: 169.254.169.254/32
104                   next_hop: {get_param: EC2MetadataIp}
105                 -
106                   default: true
107                   next_hop: {get_param: ControlPlaneDefaultRoute}
108             -
109               type: interface
110               name: nic2
111               use_dhcp: false
112               addresses:
113                 -
114                   ip_netmask: {get_param: StorageIpSubnet}
115             -
116               type: interface
117               name: nic3
118               use_dhcp: false
119               addresses:
120                 -
121                   ip_netmask: {get_param: StorageMgmtIpSubnet}
122             -
123               type: interface
124               name: nic4
125               use_dhcp: false
126               addresses:
127                 -
128                   ip_netmask: {get_param: InternalApiIpSubnet}
129             -
130               # Create a bridge which can also be used for VLAN-mode bridge mapping
131               type: ovs_bridge
132               name: br-tenant
133               use_dhcp: false
134               addresses:
135                 -
136                   ip_netmask: {get_param: TenantIpSubnet}
137               members:
138                 -
139                   type: interface
140                   name: nic5
141                   use_dhcp: false
142                   # force the MAC address of the bridge to this interface
143                   primary: true
144             -
145               type: ovs_bridge
146               name: {get_input: bridge_name}
147               dns_servers: {get_param: DnsServers}
148               use_dhcp: false
149               addresses:
150                 -
151                   ip_netmask: {get_param: ExternalIpSubnet}
152               routes:
153                 -
154                   default: true
155                   next_hop: {get_param: ExternalInterfaceDefaultRoute}
156               members:
157                 -
158                   type: interface
159                   name: nic6
160                   # force the MAC address of the bridge to this interface
161                   primary: true
162             # Uncomment when including environments/network-management.yaml
163             #-
164             #  type: interface
165             #  name: nic7
166             #  use_dhcp: false
167             #  addresses:
168             #    -
169             #      ip_netmask: {get_param: ManagementIpSubnet}
170
171 outputs:
172   OS::stack_id:
173     description: The OsNetConfigImpl resource.
174     value: {get_resource: OsNetConfigImpl}