Merge "ovn: Provide the option to configure OVNCMSOptions ('ovn-cms-options') as a role parameter"
This commit is contained in:
commit
c04d8e8a01
@ -87,8 +87,23 @@ outputs:
|
|||||||
recurse: true
|
recurse: true
|
||||||
docker_config:
|
docker_config:
|
||||||
step_4:
|
step_4:
|
||||||
|
configure_cms_options:
|
||||||
|
start_order: 0
|
||||||
|
detach: false
|
||||||
|
net: host
|
||||||
|
privileged: true
|
||||||
|
user: root
|
||||||
|
command: ['/bin/bash', '-c', 'CMS_OPTS=$(hiera ovn::controller::ovn_cms_options -c /etc/puppet/hiera.yaml); if [ X"$CMS_OPTS" != X ]; then ovs-vsctl set open . external_ids:ovn-cms-opts=$CMS_OPTS; fi']
|
||||||
|
image: &ovn_controller_image {get_param: DockerOvnControllerImage}
|
||||||
|
volumes:
|
||||||
|
list_concat:
|
||||||
|
- {get_attr: [ContainersCommon, volumes]}
|
||||||
|
-
|
||||||
|
- /lib/modules:/lib/modules:ro
|
||||||
|
- /run/openvswitch:/run/openvswitch
|
||||||
ovn_controller:
|
ovn_controller:
|
||||||
image: {get_param: DockerOvnControllerImage}
|
start_order: 1
|
||||||
|
image: *ovn_controller_image
|
||||||
net: host
|
net: host
|
||||||
privileged: true
|
privileged: true
|
||||||
user: root
|
user: root
|
||||||
|
@ -27,3 +27,5 @@ parameter_defaults:
|
|||||||
NeutronPluginExtensions: "qos,port_security,dns"
|
NeutronPluginExtensions: "qos,port_security,dns"
|
||||||
ComputeParameters:
|
ComputeParameters:
|
||||||
NeutronBridgeMappings: ""
|
NeutronBridgeMappings: ""
|
||||||
|
ControllerParameters:
|
||||||
|
OVNCMSOptions: "enable-chassis-as-gw"
|
||||||
|
@ -27,3 +27,5 @@ parameter_defaults:
|
|||||||
NeutronPluginExtensions: "qos,port_security,dns"
|
NeutronPluginExtensions: "qos,port_security,dns"
|
||||||
ComputeParameters:
|
ComputeParameters:
|
||||||
NeutronBridgeMappings: ""
|
NeutronBridgeMappings: ""
|
||||||
|
ControllerParameters:
|
||||||
|
OVNCMSOptions: "enable-chassis-as-gw"
|
||||||
|
@ -57,6 +57,10 @@ parameters:
|
|||||||
description: Whether Metadata Service has to be enabled
|
description: Whether Metadata Service has to be enabled
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
OVNCMSOptions:
|
||||||
|
description: The CMS options to configure in ovs db
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
@ -70,9 +74,11 @@ resources:
|
|||||||
map_replace:
|
map_replace:
|
||||||
- map_replace:
|
- map_replace:
|
||||||
- ovn::controller::ovn_bridge_mappings: NeutronBridgeMappings
|
- ovn::controller::ovn_bridge_mappings: NeutronBridgeMappings
|
||||||
|
ovn::controller::ovn_cms_options: OVNCMSOptions
|
||||||
- values: {get_param: [RoleParameters]}
|
- values: {get_param: [RoleParameters]}
|
||||||
- values:
|
- values:
|
||||||
NeutronBridgeMappings: {get_param: NeutronBridgeMappings}
|
NeutronBridgeMappings: {get_param: NeutronBridgeMappings}
|
||||||
|
OVNCMSOptions: {get_param: OVNCMSOptions}
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
force_config_drive: {equals: [{get_param: OVNMetadataEnabled}, false]}
|
force_config_drive: {equals: [{get_param: OVNMetadataEnabled}, false]}
|
||||||
|
Loading…
Reference in New Issue
Block a user