-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Ward
committed
Nov 30, 2018
1 parent
a47e598
commit 4f81ad5
Showing
8 changed files
with
896 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
192 changes: 192 additions & 0 deletions
192
playbooks/osp/13/overcloud/nic-configs/ceph-storage.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
heat_template_version: queens | ||
description: > | ||
Software Config to drive os-net-config with 2 bonded nics on a bridge with VLANs attached for the compute role. | ||
parameters: | ||
ControlPlaneIp: | ||
default: '' | ||
description: IP address/subnet on the ctlplane network | ||
type: string | ||
ExternalIpSubnet: | ||
default: '' | ||
description: IP address/subnet on the external network | ||
type: string | ||
InternalApiIpSubnet: | ||
default: '' | ||
description: IP address/subnet on the internal_api network | ||
type: string | ||
StorageIpSubnet: | ||
default: '' | ||
description: IP address/subnet on the storage network | ||
type: string | ||
StorageMgmtIpSubnet: | ||
default: '' | ||
description: IP address/subnet on the storage_mgmt network | ||
type: string | ||
TenantIpSubnet: | ||
default: '' | ||
description: IP address/subnet on the tenant network | ||
type: string | ||
ManagementIpSubnet: # Only populated when including environments/network-management.yaml | ||
default: '' | ||
description: IP address/subnet on the management network | ||
type: string | ||
BondInterfaceOvsOptions: | ||
default: '' | ||
description: 'The ovs_options or bonding_options string for the bond | ||
interface. Set things like lacp=active and/or bond_mode=balance-slb | ||
for OVS bonds or like mode=4 for Linux bonds using this option.' | ||
type: string | ||
constraints: | ||
- allowed_pattern: ^((?!balance.tcp).)*$ | ||
description: 'The balance-tcp bond mode is known to cause packet loss and | ||
should not be used in BondInterfaceOvsOptions.' | ||
ExternalNetworkVlanID: | ||
default: 10 | ||
description: Vlan ID for the external network traffic. | ||
type: number | ||
InternalApiNetworkVlanID: | ||
default: 20 | ||
description: Vlan ID for the internal_api network traffic. | ||
type: number | ||
StorageNetworkVlanID: | ||
default: 30 | ||
description: Vlan ID for the storage network traffic. | ||
type: number | ||
StorageMgmtNetworkVlanID: | ||
default: 40 | ||
description: Vlan ID for the storage mgmt network traffic. | ||
type: number | ||
TenantNetworkVlanID: | ||
default: 50 | ||
description: Vlan ID for the tenant network traffic. | ||
type: number | ||
ManagementNetworkVlanID: | ||
default: 60 | ||
description: Vlan ID for the management network traffic. | ||
type: number | ||
ControlPlaneSubnetCidr: # Override this via parameter_defaults | ||
default: '24' | ||
description: The subnet CIDR of the control plane network. | ||
type: string | ||
ControlPlaneDefaultRoute: # Override this via parameter_defaults | ||
description: The default route of the control plane network. | ||
type: string | ||
ExternalInterfaceDefaultRoute: # Not used by default in this template | ||
default: 10.0.0.1 | ||
description: The default route of the external network. | ||
type: string | ||
ManagementInterfaceDefaultRoute: # Commented out by default in this template | ||
default: unset | ||
description: The default route of the management network. | ||
type: string | ||
DnsServers: # Override this via parameter_defaults | ||
default: [] | ||
description: A list of DNS servers (2 max for some implementations) that will be added to resolv.conf. | ||
type: comma_delimited_list | ||
resources: | ||
OsNetConfigImpl: | ||
type: OS::Heat::SoftwareConfig | ||
properties: | ||
group: script | ||
config: | ||
str_replace: | ||
template: | ||
get_file: /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh | ||
params: | ||
$network_config: | ||
network_config: | ||
- type: interface | ||
name: eth0 | ||
use_dhcp: false | ||
addresses: | ||
- ip_netmask: | ||
list_join: | ||
- / | ||
- - get_param: ControlPlaneIp | ||
- get_param: ControlPlaneSubnetCidr | ||
routes: | ||
- default: true | ||
next_hop: | ||
get_param: ControlPlaneDefaultRoute | ||
- ip_netmask: 169.254.169.254/32 | ||
next_hop: | ||
get_param: ControlPlaneDefaultRoute | ||
dns_servers: | ||
get_param: DnsServers | ||
- type: ovs_bridge | ||
name: bridge_name | ||
members: | ||
- type: linux_bond | ||
name: bond0 | ||
mtu: 9000 | ||
bonding_options: | ||
get_param: BondInterfaceOvsOptions | ||
members: | ||
- type: interface | ||
name: eth1 | ||
mtu: 9000 | ||
- type: interface | ||
name: eth2 | ||
mtu: 9000 | ||
- type: vlan | ||
device: bond0 | ||
mtu: 1500 | ||
vlan_id: | ||
get_param: ManagementNetworkVlanID | ||
use_dhcp: false | ||
addresses: | ||
- ip_netmask: | ||
get_param: ManagementIpSubnet | ||
routes: | ||
- ip_netmask: ManagementNetCidr | ||
next_hop: | ||
get_param: ManagementInterfaceDefaultRoute | ||
- type: vlan | ||
device: bond0 | ||
mtu: 1500 | ||
vlan_id: | ||
get_param: InternalApiNetworkVlanID | ||
use_dhcp: false | ||
addresses: | ||
- ip_netmask: | ||
get_param: InternalApiIpSubnet | ||
- type: vlan | ||
device: bond0 | ||
mtu: 1500 | ||
vlan_id: | ||
get_param: StorageNetworkVlanID | ||
use_dhcp: false | ||
addresses: | ||
- ip_netmask: | ||
get_param: StorageIpSubnet | ||
- type: vlan | ||
device: bond1 | ||
mtu: 1500 | ||
vlan_id: | ||
get_param: StorageMgmtNetworkVlanID | ||
use_dhcp: false | ||
addresses: | ||
- ip_netmask: | ||
get_param: StorageMgmtIpSubnet | ||
- type: ovs_bridge | ||
name: br-storage | ||
members: | ||
- type: linux_bond | ||
name: bond1 | ||
mtu: 9000 | ||
bonding_options: | ||
get_param: BondInterfaceOvsOptions | ||
members: | ||
- type: interface | ||
name: eth3 | ||
mtu: 9000 | ||
- type: interface | ||
name: eth4 | ||
mtu: 9000 | ||
|
||
|
||
outputs: | ||
OS::stack_id: | ||
description: The OsNetConfigImpl resource. | ||
value: | ||
get_resource: OsNetConfigImpl |
Oops, something went wrong.