Merge "ovn: Provide the option to configure OVNCMSOptions ('ovn-cms-options') as a role parameter"

This commit is contained in:
Zuul 2018-02-06 00:05:09 +00:00 committed by Gerrit Code Review
commit c04d8e8a01
4 changed files with 26 additions and 1 deletions

View File

@ -87,8 +87,23 @@ outputs:
recurse: true
docker_config:
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:
image: {get_param: DockerOvnControllerImage}
start_order: 1
image: *ovn_controller_image
net: host
privileged: true
user: root

View File

@ -27,3 +27,5 @@ parameter_defaults:
NeutronPluginExtensions: "qos,port_security,dns"
ComputeParameters:
NeutronBridgeMappings: ""
ControllerParameters:
OVNCMSOptions: "enable-chassis-as-gw"

View File

@ -27,3 +27,5 @@ parameter_defaults:
NeutronPluginExtensions: "qos,port_security,dns"
ComputeParameters:
NeutronBridgeMappings: ""
ControllerParameters:
OVNCMSOptions: "enable-chassis-as-gw"

View File

@ -57,6 +57,10 @@ parameters:
description: Whether Metadata Service has to be enabled
type: boolean
default: true
OVNCMSOptions:
description: The CMS options to configure in ovs db
type: string
default: ""
resources:
@ -70,9 +74,11 @@ resources:
map_replace:
- map_replace:
- ovn::controller::ovn_bridge_mappings: NeutronBridgeMappings
ovn::controller::ovn_cms_options: OVNCMSOptions
- values: {get_param: [RoleParameters]}
- values:
NeutronBridgeMappings: {get_param: NeutronBridgeMappings}
OVNCMSOptions: {get_param: OVNCMSOptions}
conditions:
force_config_drive: {equals: [{get_param: OVNMetadataEnabled}, false]}