Merge "manila: Drop leftover of nova-network"
This commit is contained in:
commit
d6bff4e36c
@ -655,7 +655,7 @@ Manila Network configuration
|
||||
----------------------------
|
||||
|
||||
**CONFIG_MANILA_NETWORK_TYPE**
|
||||
Type of networking that the backend will use. A more detailed description of each option is available in the Manila docs. Defaults to 'neutron'. ['neutron', 'nova-network', 'standalone']
|
||||
Type of networking that the backend will use. A more detailed description of each option is available in the Manila docs. Defaults to 'neutron'. ['neutron', 'standalone']
|
||||
|
||||
Manila Standalone network configuration
|
||||
---------------------------------------
|
||||
|
@ -297,7 +297,7 @@ def initConfig(controller):
|
||||
"MANILANETWORK": [
|
||||
{"CMD_OPTION": "manila-network-type",
|
||||
"PROMPT": ("Enter a network type"),
|
||||
"OPTION_LIST": ['neutron', 'nova-network', 'standalone'],
|
||||
"OPTION_LIST": ['neutron', 'standalone'],
|
||||
"VALIDATORS": [validators.validate_options],
|
||||
"DEFAULT_VALUE": "neutron",
|
||||
"MASK_INPUT": False,
|
||||
|
@ -2,27 +2,26 @@
|
||||
define packstack::manila::network ($backend_name = $name) {
|
||||
$manila_network_type = lookup('CONFIG_MANILA_NETWORK_TYPE')
|
||||
|
||||
if ($manila_network_type == 'neutron'){
|
||||
class { 'manila::network::neutron':
|
||||
auth_type => 'password',
|
||||
auth_url => lookup('CONFIG_KEYSTONE_PUBLIC_URL_VERSIONLESS'),
|
||||
password => lookup('CONFIG_NEUTRON_KS_PW'),
|
||||
case $manila_network_type {
|
||||
'neutron': {
|
||||
class { 'manila::network::neutron':
|
||||
auth_type => 'password',
|
||||
auth_url => lookup('CONFIG_KEYSTONE_PUBLIC_URL_VERSIONLESS'),
|
||||
password => lookup('CONFIG_NEUTRON_KS_PW'),
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif ($manila_network_type == 'nova-network'){
|
||||
manila::network::nova_network{ $backend_name: }
|
||||
}
|
||||
elsif ($manila_network_type == 'standalone'){
|
||||
manila::network::standalone{ $backend_name:
|
||||
standalone_network_plugin_gateway => lookup('CONFIG_MANILA_NETWORK_STANDALONE_GATEWAY'),
|
||||
standalone_network_plugin_mask => lookup('CONFIG_MANILA_NETWORK_STANDALONE_NETMASK'),
|
||||
standalone_network_plugin_segmentation_id => lookup('CONFIG_MANILA_NETWORK_STANDALONE_SEG_ID'),
|
||||
standalone_network_plugin_allowed_ip_ranges => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_RANGE'),
|
||||
standalone_network_plugin_ip_version => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_VERSION'),
|
||||
'standalone': {
|
||||
manila::network::standalone{ $backend_name:
|
||||
standalone_network_plugin_gateway => lookup('CONFIG_MANILA_NETWORK_STANDALONE_GATEWAY'),
|
||||
standalone_network_plugin_mask => lookup('CONFIG_MANILA_NETWORK_STANDALONE_NETMASK'),
|
||||
standalone_network_plugin_segmentation_id => lookup('CONFIG_MANILA_NETWORK_STANDALONE_SEG_ID'),
|
||||
standalone_network_plugin_allowed_ip_ranges => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_RANGE'),
|
||||
standalone_network_plugin_ip_version => lookup('CONFIG_MANILA_NETWORK_STANDALONE_IP_VERSION'),
|
||||
}
|
||||
}
|
||||
default: {
|
||||
fail("The value ${manila_network_type} is not a valid value for the Manila network type.")
|
||||
}
|
||||
}
|
||||
else {
|
||||
fail("The value ${manila_network_type} is not a valid value for the Manila network type.")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user