Added Neutron VPNaaS
This provides Neutron VPN as a Service feature. It's off by default, use answer file or interactive option to enable it. Co-Authored-By: Martin Mágr <mmagr@redhat.com> Change-Id: Idee35212ebdcb9ba76df12c2d085ad4fa970b463
This commit is contained in:
committed by
Martin Mágr
parent
652f7e6858
commit
e7ac715348
@@ -775,6 +775,9 @@ Neutron config
|
|||||||
**CONFIG_NEUTRON_FWAAS**
|
**CONFIG_NEUTRON_FWAAS**
|
||||||
Specify 'y' to configure OpenStack Networking's Firewall-as-a-Service (FWaaS). ['y', 'n']
|
Specify 'y' to configure OpenStack Networking's Firewall-as-a-Service (FWaaS). ['y', 'n']
|
||||||
|
|
||||||
|
**CONFIG_NEUTRON_VPNAAS**
|
||||||
|
Specify 'y' to configure OpenStack Networking's VPN-as-a-Service (VPNaaS). ['y', 'n']
|
||||||
|
|
||||||
Neutron ML2 plugin config
|
Neutron ML2 plugin config
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,18 @@ def initConfig(controller):
|
|||||||
"USE_DEFAULT": False,
|
"USE_DEFAULT": False,
|
||||||
"NEED_CONFIRM": False,
|
"NEED_CONFIRM": False,
|
||||||
"CONDITION": False},
|
"CONDITION": False},
|
||||||
|
|
||||||
|
{"CMD_OPTION": "os-neutron-vpnaas-install",
|
||||||
|
"PROMPT": "Would you like to configure neutron VPNaaS?",
|
||||||
|
"OPTION_LIST": ["y", "n"],
|
||||||
|
"VALIDATORS": [validators.validate_options],
|
||||||
|
"DEFAULT_VALUE": "n",
|
||||||
|
"MASK_INPUT": False,
|
||||||
|
"LOOSE_VALIDATION": True,
|
||||||
|
"CONF_NAME": "CONFIG_NEUTRON_VPNAAS",
|
||||||
|
"USE_DEFAULT": False,
|
||||||
|
"NEED_CONFIRM": False,
|
||||||
|
"CONDITION": False},
|
||||||
],
|
],
|
||||||
|
|
||||||
"NEUTRON_LB_AGENT": [
|
"NEUTRON_LB_AGENT": [
|
||||||
@@ -414,6 +426,8 @@ def initSequences(controller):
|
|||||||
q_hosts = api_hosts | network_hosts | compute_hosts
|
q_hosts = api_hosts | network_hosts | compute_hosts
|
||||||
|
|
||||||
neutron_steps = [
|
neutron_steps = [
|
||||||
|
{'title': 'Adding Neutron VPNaaS Agent manifest entries',
|
||||||
|
'functions': [create_vpnaas_manifests]},
|
||||||
{'title': 'Adding Neutron FWaaS Agent manifest entries',
|
{'title': 'Adding Neutron FWaaS Agent manifest entries',
|
||||||
'functions': [create_fwaas_manifests]},
|
'functions': [create_fwaas_manifests]},
|
||||||
{'title': 'Adding Neutron LBaaS Agent manifest entries',
|
{'title': 'Adding Neutron LBaaS Agent manifest entries',
|
||||||
@@ -506,6 +520,9 @@ def create_manifests(config, messages):
|
|||||||
if config['CONFIG_NEUTRON_FWAAS'] == 'y':
|
if config['CONFIG_NEUTRON_FWAAS'] == 'y':
|
||||||
service_plugins.append('firewall')
|
service_plugins.append('firewall')
|
||||||
|
|
||||||
|
if config['CONFIG_NEUTRON_VPNAAS'] == 'y':
|
||||||
|
service_plugins.append('vpnaas')
|
||||||
|
|
||||||
config['SERVICE_PLUGINS'] = (service_plugins if service_plugins
|
config['SERVICE_PLUGINS'] = (service_plugins if service_plugins
|
||||||
else 'undef')
|
else 'undef')
|
||||||
|
|
||||||
@@ -687,6 +704,18 @@ def create_fwaas_manifests(config, messages):
|
|||||||
appendManifestFile(manifestfile, manifestdata + "\n")
|
appendManifestFile(manifestfile, manifestdata + "\n")
|
||||||
|
|
||||||
|
|
||||||
|
def create_vpnaas_manifests(config, messages):
|
||||||
|
global network_hosts
|
||||||
|
|
||||||
|
if config['CONFIG_NEUTRON_VPNAAS'] != 'y':
|
||||||
|
return
|
||||||
|
|
||||||
|
for host in network_hosts:
|
||||||
|
manifestdata = getManifestTemplate("neutron_vpnaas")
|
||||||
|
manifestfile = "%s_neutron.pp" % (host,)
|
||||||
|
appendManifestFile(manifestfile, manifestdata + "\n")
|
||||||
|
|
||||||
|
|
||||||
def create_lbaas_manifests(config, messages):
|
def create_lbaas_manifests(config, messages):
|
||||||
global network_hosts
|
global network_hosts
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
|
|
||||||
|
$start_l3_agent = hiera('CONFIG_NEUTRON_VPNAAS') ? {
|
||||||
|
'y' => false,
|
||||||
|
default => true
|
||||||
|
}
|
||||||
|
|
||||||
class { '::neutron::agents::l3':
|
class { '::neutron::agents::l3':
|
||||||
interface_driver => hiera('CONFIG_NEUTRON_L3_INTERFACE_DRIVER'),
|
interface_driver => hiera('CONFIG_NEUTRON_L3_INTERFACE_DRIVER'),
|
||||||
external_network_bridge => hiera('CONFIG_NEUTRON_L3_EXT_BRIDGE'),
|
external_network_bridge => hiera('CONFIG_NEUTRON_L3_EXT_BRIDGE'),
|
||||||
|
manage_service => $start_l3_agent,
|
||||||
|
enabled => $start_l3_agent,
|
||||||
debug => hiera('CONFIG_DEBUG_MODE'),
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
3
packstack/puppet/templates/neutron_vpnaas.pp
Normal file
3
packstack/puppet/templates/neutron_vpnaas.pp
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
class { '::neutron::agents::vpnaas':
|
||||||
|
enabled => true,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user