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
(cherry picked from commit 324b8c3df3)
This commit is contained in:
Javier Pena 2016-01-28 11:18:19 +01:00
parent 895d532f57
commit dad839096c
1 changed files with 11 additions and 0 deletions

View File

@ -3,3 +3,14 @@ class { '::neutron::agents::vpnaas':
vpn_device_driver => 'neutron_vpnaas.services.vpn.device_drivers.libreswan_ipsec.LibreSwanDriver',
}
# 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:libreswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default',
require => Class['::neutron::agents::vpnaas'],
notify => Service['neutron-server'],
}