-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to provide custom configuration for VPNaaS
As we need to monitor vpn connection detailes, the only way to config vpnaas to log states and connections of vpn is to provide own templates for VPNaaS configuration. With that we enable deployers to provide custom configuration files for using with any vpn drivers (stronswan/openswan). Co-Authored-By: Dmitriy Rabotyagov <[email protected]> Change-Id: I54dbd5c9690281af475312a277eab534403edf92 (cherry picked from commit 26b768e)
- Loading branch information
1 parent
713ae64
commit 7898c61
Showing
4 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
releasenotes/notes/neutron-vpnaas-custom-config-ad991bb02b9ed655.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
features: | ||
- | | ||
Neutron VPN as a Service (VPNaaS) with customized configuration files | ||
can now be defined with the variable ``neutron_vpnaas_custom_config``. | ||
deployers should define ``neutron_vpnaas_custom_config`` in 'user_variables.yml'. | ||
Example: | ||
.. code-block:: yaml | ||
neutron_vpnaas_custom_config: | ||
- src: "/etc/openstack_deploy/strongswan/strongswan.conf.template" | ||
dest: "{{ neutron_conf_dir }}/strongswan.conf.template" | ||
- src: "/etc/openstack_deploy/strongswan/strongswan.d" | ||
dest: "/etc/strongswan.d" | ||
- src: "/etc/openstack_deploy/{{ neutron_vpnaas_distro_packages }}/ipsec.conf.template" | ||
dest: "{{ neutron_conf_dir }}/ipsec.conf.template" | ||
- src: "/etc/openstack_deploy/{{ neutron_vpnaas_distro_packages }}/ipsec.secret.template" | ||
dest: "{{ neutron_conf_dir }}/ipsec.secret.template" | ||
We should be also define ``neutron_l3_agent_ini_overrides`` in 'user_variables.yml' | ||
to tell ``l3_agent`` use the new config file. | ||
Example: | ||
.. code-block:: yaml | ||
neutron_l3_agent_ini_overrides: | ||
ipsec: | ||
enable_detailed_logging: True | ||
strongswan: | ||
strongswan_config_template : "{{ neutron_conf_dir }}/strongswan.conf.template" | ||
openswan: | ||
ipsec_config_template: "{{ neutron_conf_dir }}/ipsec.conf.template" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters