Skip to content

Instantly share code, notes, and snippets.

@venkataanil
Created December 7, 2018 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venkataanil/b4e30a7bbe082b3d4b85524def15e0b8 to your computer and use it in GitHub Desktop.
Save venkataanil/b4e30a7bbe082b3d4b85524def15e0b8 to your computer and use it in GitHub Desktop.
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: ovs_bridge
name: br-tenant
use_dhcp: false
members:
- type: interface
name: p2p1
primary: true
use_dhcp: false
- type: vlan
vlan_id:
get_param: TenantNetworkVlanID
addresses:
- ip_netmask:
get_param: TenantIpSubnet
- type: ovs_bridge
name: br-control
use_dhcp: false
dns_servers:
get_param: DnsServers
addresses:
- ip_netmask:
list_join:
- /
- - get_param: ControlPlaneIp
- get_param: ControlPlaneSubnetCidr
routes:
- ip_netmask: 169.254.169.254/32
next_hop:
get_param: EC2MetadataIp
members:
- type: interface
name: em2
primary: true
- type: ovs_bridge
name: br-ex
use_dhcp: false
members:
- type: interface
name: p2p1
primary: true
use_dhcp: false
- type: vlan
vlan_id:
get_param: StorageMgmtNetworkVlanID
addresses:
- ip_netmask:
get_param: StorageMgmtIpSubnet
- type: vlan
vlan_id:
get_param: InternalApiNetworkVlanID
addresses:
- ip_netmask:
get_param: InternalApiIpSubnet
- type: vlan
vlan_id:
get_param: StorageNetworkVlanID
addresses:
- ip_netmask:
get_param: StorageIpSubnet
- type: vlan
vlan_id:
get_param: ExternalNetworkVlanID
addresses:
- ip_netmask:
get_param: ExternalIpSubnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment