Manila network plugin address family support

Set NetworkPluginIpv6Enabled if IPv6 networks
have been enabled.  Currently this parameter and
NetworkPluginIPv4Enabled are mutually exclusive so
set the latter false as well.  Default is IPv4
with NetworkPluginIPv4Enabled.

Depends-On: Ic7e5b5351e429755ba48613ab89d1b7e7d6e2d34
Change-Id: Ia895d7190f0fb8e97c87b3178461d9fc26393b9b
(cherry picked from commit d8b1d64add)
This commit is contained in:
Tom Barron 2017-12-18 19:47:29 -05:00 committed by James Slagle
parent f09e6acefd
commit 95f1b8584c
4 changed files with 14 additions and 0 deletions

View File

@ -33,3 +33,5 @@ parameter_defaults:
NovaIPv6: True
RabbitIPv6: True
MemcachedIPv6: True
ManilaIPv6: True

View File

@ -33,3 +33,4 @@ parameter_defaults:
NovaIPv6: True
RabbitIPv6: True
MemcachedIPv6: True
ManilaIPv6: True

View File

@ -57,3 +57,6 @@ parameter_defaults:
MemcachedIPv6: True
# Enable IPv6 environment for MySQL.
MysqlIPv6: True
# Enable IPv6 environment for Manila
ManilaIPv6: True

View File

@ -30,6 +30,10 @@ parameters:
description: Mapping of service endpoint -> protocol. Typically set
via parameter_defaults in the resource registry.
type: json
ManilaIPv6:
default: False
description: Set to True to enable IPv6 access in manila.
type: boolean
Debug:
default: ''
description: Set to True to enable debugging on all services.
@ -69,6 +73,7 @@ parameters:
conditions:
service_debug_unset: {equals : [{get_param: ManilaDebug}, '']}
manila_ipv6: {equals : [{get_param: ManilaIPv6}, true]}
outputs:
role_data:
@ -98,6 +103,9 @@ outputs:
query:
read_default_file: /etc/my.cnf.d/tripleo.cnf
read_default_group: tripleo
manila::network::neutron::network_plugin_ipv6_enabled: {get_param: ManilaIPv6}
# Currently the address family parameters are mutually exclusive
manila::network::neutron::network_plugin_ipv4_enabled: {if: ["manila_ipv6", false, true]}
service_config_settings:
mysql:
manila::db::mysql::password: {get_param: ManilaPassword}