Configure service_provider for VPNaaS

A service_provider needs to be configured in
/etc/neutron/neutron_vpnaas.conf for neutron-server to start
correctly when VPNaaS is configured.

Please note this is currently done in a hacky way, and it should be
changed as soon as proper support is added in puppet-neutron (see
https://bugs.launchpad.net/puppet-neutron/+bug/1538971 for details).

Change-Id: I40cd7d8dfe64bf14fad5960061d2f40869bce642
This commit is contained in:
Javier Pena
2016-01-28 11:18:19 +01:00
parent d220fc0c93
commit 324b8c3df3

View File

@@ -1,3 +1,15 @@
class { '::neutron::agents::vpnaas':
enabled => true,
enabled => true,
vpn_device_driver => 'neutron_vpnaas.services.vpn.device_drivers.ipsec.OpenSwanDriver',
}
# FIXME: this is a workaround until
# https://bugs.launchpad.net/puppet-neutron/+bug/1538971 is fixed
file_line { 'vpnaas_service_provider':
path => '/etc/neutron/neutron_vpnaas.conf',
match => '^service_provider +=.*',
line => 'service_provider = VPN:openswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default',
require => Class['::neutron::agents::vpnaas'],
notify => Service['neutron-server'],
}