2017-02-17 10:12:36 +00:00
|
|
|
heat_template_version: pike
|
2015-11-10 10:45:22 +00:00
|
|
|
description: >
|
|
|
|
Software Config to drive os-net-config for a simple bridge.
|
|
|
|
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
|
2016-01-05 10:38:15 +00:00
|
|
|
ManagementIpSubnet:
|
|
|
|
default: ''
|
|
|
|
description: IP address/subnet on the management network
|
|
|
|
type: string
|
2015-11-10 10:45:22 +00:00
|
|
|
ControlPlaneDefaultRoute: # Override this via parameter_defaults
|
|
|
|
description: The default route of the control plane network.
|
|
|
|
type: string
|
2017-04-07 08:51:08 +00:00
|
|
|
default: 192.168.24.1
|
2015-11-10 10:45:22 +00:00
|
|
|
EC2MetadataIp: # Override this via parameter_defaults
|
|
|
|
description: The IP address of the EC2 metadata server.
|
|
|
|
type: string
|
2016-11-23 15:39:11 +00:00
|
|
|
default: 169.254.169.254/32
|
2015-11-10 10:45:22 +00:00
|
|
|
resources:
|
|
|
|
OsNetConfigImpl:
|
2016-11-23 15:39:11 +00:00
|
|
|
type: OS::Heat::SoftwareConfig
|
2015-11-10 10:45:22 +00:00
|
|
|
properties:
|
2016-11-23 15:39:11 +00:00
|
|
|
group: script
|
2015-11-10 10:45:22 +00:00
|
|
|
config:
|
2016-11-23 15:39:11 +00:00
|
|
|
str_replace:
|
|
|
|
template:
|
|
|
|
get_file: network/scripts/run-os-net-config.sh
|
|
|
|
params:
|
|
|
|
$network_config:
|
|
|
|
network_config:
|
|
|
|
- type: linux_bridge
|
|
|
|
name: bridge_name
|
|
|
|
addresses:
|
|
|
|
- ip_netmask:
|
|
|
|
get_param: ControlPlaneIp
|
|
|
|
members:
|
|
|
|
- type: interface
|
|
|
|
name: interface_name
|
2015-11-10 10:45:22 +00:00
|
|
|
# force the MAC address of the bridge to this interface
|
|
|
|
primary: true
|
2016-11-23 15:39:11 +00:00
|
|
|
routes:
|
|
|
|
- ip_netmask: 0.0.0.0/0
|
|
|
|
next_hop:
|
|
|
|
get_param: ControlPlaneDefaultRoute
|
2015-11-10 10:45:22 +00:00
|
|
|
default: true
|
2016-11-23 15:39:11 +00:00
|
|
|
- ip_netmask:
|
|
|
|
get_param: EC2MetadataIp
|
|
|
|
next_hop:
|
|
|
|
get_param: ControlPlaneDefaultRoute
|
2015-11-10 10:45:22 +00:00
|
|
|
outputs:
|
|
|
|
OS::stack_id:
|
|
|
|
description: The OsNetConfigImpl resource.
|
2016-11-23 15:39:11 +00:00
|
|
|
value:
|
|
|
|
get_resource: OsNetConfigImpl
|
|
|
|
|