diff options
author | 2015-11-19 08:02:05 +0000 | |
---|---|---|
committer | 2015-11-19 08:02:05 +0000 | |
commit | a5d9a6384c09ff8e84c7e6bfefb9b9202b0c2341 (patch) | |
tree | 619d37247db604325ca63421e54733d8ae1d3096 /deploy/adapters/ansible/roles/neutron-network/tasks/vpn.yml | |
parent | be2bef457417df3aabcf371c8c8b9484c955c0f8 (diff) | |
parent | 4251f3ca9b4271649f9670468529ba2b077269d0 (diff) |
Merge "support FWaaS and VPNaaS"
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-network/tasks/vpn.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/neutron-network/tasks/vpn.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/neutron-network/tasks/vpn.yml b/deploy/adapters/ansible/roles/neutron-network/tasks/vpn.yml new file mode 100755 index 00000000..6f70a68b --- /dev/null +++ b/deploy/adapters/ansible/roles/neutron-network/tasks/vpn.yml @@ -0,0 +1,26 @@ +--- +- include_vars: "{{ ansible_os_family }}.yml" + +- name: install vpn packages + action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" + with_items: vpn_packages + +- name: update vpn related conf + shell: crudini --set /etc/neutron/l3_agent.ini vpnagent vpn_device_driver neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.StrongSwanDriver; + crudini --set --list /etc/neutron/neutron.conf DEFAULT service_plugins vpnaas + crudini --set /etc/neutron/neutron_vpnaas.conf service_providers service_provider 'VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default' + +- name: make sure rootwrap.d dir exist + file: path=/etc/neutron/rootwrap.d state=directory mode=0755 + +- name: update rootwrap + copy: src=vpnaas.filters dest=/etc/neutron/rootwrap.d/vpnaas.filters + +- name: enable vpn service + service: name={{ item }} state=started enabled=yes + with_items: + - neutron-vpn-agent + - strongswan + notify: + - restart vpn agent service + |