Merge "Increase galera sync timeout in yum_update.sh"
[apex-tripleo-heat-templates.git] / network / config / bond-with-vlans / controller-v6.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   Software Config to drive os-net-config with 2 bonded nics on a bridge
5   with VLANs attached for the controller role with IPv6 on the External
6   network. The IPv6 default route is on the External network, and the
7   IPv4 default route 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   BondInterfaceOvsOptions:
39     default: 'bond_mode=active-backup'
40     description: The ovs_options string for the bond interface. Set things like
41                  lacp=active and/or bond_mode=balance-slb using this option.
42     type: string
43   ExternalNetworkVlanID:
44     default: 10
45     description: Vlan ID for the external network traffic.
46     type: number
47   InternalApiNetworkVlanID:
48     default: 20
49     description: Vlan ID for the internal_api network traffic.
50     type: number
51   StorageNetworkVlanID:
52     default: 30
53     description: Vlan ID for the storage network traffic.
54     type: number
55   StorageMgmtNetworkVlanID:
56     default: 40
57     description: Vlan ID for the storage mgmt network traffic.
58     type: number
59   TenantNetworkVlanID:
60     default: 50
61     description: Vlan ID for the tenant network traffic.
62     type: number
63   ManagementNetworkVlanID:
64     default: 60
65     description: Vlan ID for the management network traffic.
66     type: number
67   ExternalInterfaceDefaultRoute:
68     default: '10.0.0.1'
69     description: default route for the external network
70     type: string
71   ControlPlaneSubnetCidr: # Override this via parameter_defaults
72     default: '24'
73     description: The subnet CIDR of the control plane network.
74     type: string
75   ControlPlaneDefaultRoute: # Override this via parameter_defaults
76     description: The default route of the control plane network.
77     type: string
78   DnsServers: # Override this via parameter_defaults
79     default: []
80     description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
81     type: comma_delimited_list
82   EC2MetadataIp: # Override this via parameter_defaults
83     description: The IP address of the EC2 metadata server.
84     type: string
85
86 resources:
87   OsNetConfigImpl:
88     type: OS::Heat::StructuredConfig
89     properties:
90       group: os-apply-config
91       config:
92         os_net_config:
93           network_config:
94             -
95               type: interface
96               name: nic1
97               use_dhcp: false
98               addresses:
99                 -
100                   ip_netmask:
101                     list_join:
102                       - '/'
103                       - - {get_param: ControlPlaneIp}
104                         - {get_param: ControlPlaneSubnetCidr}
105               routes:
106                 -
107                   ip_netmask: 169.254.169.254/32
108                   next_hop: {get_param: EC2MetadataIp}
109                 -
110                   default: true
111                   next_hop: {get_param: ControlPlaneDefaultRoute}
112             -
113               type: ovs_bridge
114               name: {get_input: bridge_name}
115               dns_servers: {get_param: DnsServers}
116               members:
117                 -
118                   type: ovs_bond
119                   name: bond1
120                   ovs_options: {get_param: BondInterfaceOvsOptions}
121                   members:
122                     -
123                       type: interface
124                       name: nic2
125                       primary: true
126                     -
127                       type: interface
128                       name: nic3
129                 -
130                   type: vlan
131                   device: bond1
132                   vlan_id: {get_param: ExternalNetworkVlanID}
133                   addresses:
134                     -
135                       ip_netmask: {get_param: ExternalIpSubnet}
136                   routes:
137                     -
138                       default: true
139                       next_hop: {get_param: ExternalInterfaceDefaultRoute}
140                 -
141                   type: vlan
142                   device: bond1
143                   vlan_id: {get_param: InternalApiNetworkVlanID}
144                   addresses:
145                     -
146                       ip_netmask: {get_param: InternalApiIpSubnet}
147                 -
148                   type: vlan
149                   device: bond1
150                   vlan_id: {get_param: StorageNetworkVlanID}
151                   addresses:
152                     -
153                       ip_netmask: {get_param: StorageIpSubnet}
154                 -
155                   type: vlan
156                   device: bond1
157                   vlan_id: {get_param: StorageMgmtNetworkVlanID}
158                   addresses:
159                     -
160                       ip_netmask: {get_param: StorageMgmtIpSubnet}
161                 -
162                   type: vlan
163                   device: bond1
164                   vlan_id: {get_param: TenantNetworkVlanID}
165                   addresses:
166                     -
167                       ip_netmask: {get_param: TenantIpSubnet}
168                 # Uncomment when including environments/network-management.yaml
169                 #-
170                 #  type: vlan
171                 #  device: bond1
172                 #  vlan_id: {get_param: ManagementNetworkVlanID}
173                 #  addresses:
174                 #    -
175                 #      ip_netmask: {get_param: ManagementIpSubnet}
176
177 outputs:
178   OS::stack_id:
179     description: The OsNetConfigImpl resource.
180     value: {get_resource: OsNetConfigImpl}