1 heat_template_version: pike
3 Software Config to drive os-net-config with 2 bonded nics on a bridge with VLANs attached for the controller role.
7 description: IP address/subnet on the ctlplane network
11 description: IP address/subnet on the external network
15 description: IP address/subnet on the internal API network
19 description: IP address/subnet on the storage network
23 description: IP address/subnet on the storage mgmt network
27 description: IP address/subnet on the tenant network
29 ManagementIpSubnet: # Only populated when including environments/network-management.yaml
31 description: IP address/subnet on the management network
33 BondInterfaceOvsOptions:
34 default: bond_mode=active-backup
35 description: 'The ovs_options or bonding_options string for the bond
36 interface. Set things like lacp=active and/or bond_mode=balance-slb
37 for OVS bonds or like mode=4 for Linux bonds using this option.'
40 - allowed_pattern: ^((?!balance.tcp).)*$
41 description: 'The balance-tcp bond mode is known to cause packet loss and
42 should not be used in BondInterfaceOvsOptions.'
43 ExternalNetworkVlanID:
45 description: Vlan ID for the external network traffic.
47 InternalApiNetworkVlanID:
49 description: Vlan ID for the internal_api network traffic.
53 description: Vlan ID for the storage network traffic.
55 StorageMgmtNetworkVlanID:
57 description: Vlan ID for the storage mgmt network traffic.
61 description: Vlan ID for the tenant network traffic.
63 ManagementNetworkVlanID:
65 description: Vlan ID for the management network traffic.
67 ControlPlaneDefaultRoute: # Override this via parameter_defaults
68 description: The default route of the control plane network.
70 ExternalInterfaceDefaultRoute:
72 description: default route for the external network
74 ManagementInterfaceDefaultRoute: # Commented out by default in this template
76 description: The default route of the management network.
78 ControlPlaneSubnetCidr: # Override this via parameter_defaults
80 description: The subnet CIDR of the control plane network.
82 DnsServers: # Override this via parameter_defaults
84 description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf.
85 type: comma_delimited_list
86 EC2MetadataIp: # Override this via parameter_defaults
87 description: The IP address of the EC2 metadata server.
91 type: OS::Heat::SoftwareConfig
97 get_file: ../../scripts/run-os-net-config.sh
108 - - get_param: ControlPlaneIp
109 - get_param: ControlPlaneSubnetCidr
111 - ip_netmask: 169.254.169.254/32
113 get_param: EC2MetadataIp
117 get_param: DnsServers
122 get_param: BondInterfaceOvsOptions
132 get_param: ExternalNetworkVlanID
135 get_param: ExternalIpSubnet
139 get_param: ExternalInterfaceDefaultRoute
143 get_param: InternalApiNetworkVlanID
146 get_param: InternalApiIpSubnet
150 get_param: StorageNetworkVlanID
153 get_param: StorageIpSubnet
157 get_param: StorageMgmtNetworkVlanID
160 get_param: StorageMgmtIpSubnet
164 get_param: TenantNetworkVlanID
167 get_param: TenantIpSubnet
168 # Uncomment when including environments/network-management.yaml
169 # If setting default route on the Management interface, comment
170 # out the default route on the External interface. This will
171 # make the External API unreachable from remote subnets.
175 # vlan_id: {get_param: ManagementNetworkVlanID}
178 # ip_netmask: {get_param: ManagementIpSubnet}
182 # next_hop: {get_param: ManagementInterfaceDefaultRoute}
185 description: The OsNetConfigImpl resource.
187 get_resource: OsNetConfigImpl