This patch modifies the swarm bay driver/templates to allow its LBaaS resources to be conditionally enabled/disabled. Change-Id: Ic6ebec89514288837a7b540ce5517413e579f488 Partially-Implements: blueprint decouple-lbaaschanges/35/338535/2
parent
2ea72d739d
commit
7df74392d5
@ -0,0 +1,12 @@
|
||||
# Environment file to disable LBaaS in a Swarm cluster by mapping
|
||||
# LBaaS-related resource types to OS::Heat::None
|
||||
resource_registry:
|
||||
"Magnum::ApiGatewaySwitcher": ../fragments/api_gateway_switcher_master.yaml
|
||||
|
||||
# swarmcluster.yaml
|
||||
"Magnum::Optional::Neutron::Pool": "OS::Heat::None"
|
||||
"Magnum::Optional::Neutron::Pool::FloatingIP": "OS::Heat::None"
|
||||
"Magnum::Optional::Neutron::Pool::HealthMonitor": "OS::Heat::None"
|
||||
|
||||
# swarmmaster.yaml
|
||||
"Magnum::Optional::Neutron::PoolMember": "OS::Heat::None"
|
@ -0,0 +1,12 @@
|
||||
# Environment file to enable LBaaS in a Swarm cluster by mapping
|
||||
# LBaaS-related resource types to the real LBaaS resource types.
|
||||
resource_registry:
|
||||
"Magnum::ApiGatewaySwitcher": ../fragments/api_gateway_switcher_pool.yaml
|
||||
|
||||
# swarmcluster.yaml
|
||||
"Magnum::Optional::Neutron::Pool": "OS::Neutron::Pool"
|
||||
"Magnum::Optional::Neutron::Pool::FloatingIP": "OS::Neutron::FloatingIP"
|
||||
"Magnum::Optional::Neutron::Pool::HealthMonitor": "OS::Neutron::HealthMonitor"
|
||||
|
||||
# swarmmaster.yaml
|
||||
"Magnum::Optional::Neutron::PoolMember": "OS::Neutron::PoolMember"
|
@ -0,0 +1,32 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
description: >
|
||||
This is a template resource that accepts public and private IPs from both
|
||||
a Neutron LBaaS Pool and a master node. It connects the master inputs
|
||||
to its outputs, essentially acting as one state of a multiplexer.
|
||||
|
||||
parameters:
|
||||
|
||||
pool_public_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
pool_private_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
master_public_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
master_private_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
outputs:
|
||||
|
||||
public_ip:
|
||||
value: {get_param: master_public_ip}
|
||||
|
||||
private_ip:
|
||||
value: {get_param: master_private_ip}
|
@ -0,0 +1,32 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
description: >
|
||||
This is a template resource that accepts public and private IPs from both
|
||||
a Neutron LBaaS Pool and a master node. It connects the pool inputs
|
||||
to its outputs, essentially acting as one state of a multiplexer.
|
||||
|
||||
parameters:
|
||||
|
||||
pool_public_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
pool_private_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
master_public_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
master_private_ip:
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
outputs:
|
||||
|
||||
public_ip:
|
||||
value: {get_param: pool_public_ip}
|
||||
|
||||
private_ip:
|
||||
value: {get_param: pool_private_ip}
|
Loading…
Reference in new issue