Browse Source

openvpn: push the default libvirt route

keep-around/0fd0294f5e2108ae5ffb371a744758ee6bebd5c7
Loïc Dachary 4 months ago
parent
commit
0fd0294f5e
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 2
      playbooks/openvpn/roles/openvpn/defaults/main.yml
  2. 5
      playbooks/openvpn/roles/openvpn/tasks/openvpn.yml
  3. 1
      playbooks/openvpn/roles/openvpn/templates/ccd/lan.j2

2
playbooks/openvpn/roles/openvpn/defaults/main.yml

@ -21,6 +21,8 @@ openvpn_ou: Enough Community
#
openvpn_server_conf: |
push "route {{ openstack_internal_network_prefix }}.0 255.255.255.0"
route {{ libvirt_network_external_prefix }}.0 255.255.255.0
push "route {{ libvirt_network_external_prefix }}.0 255.255.255.0"
#
######################################################
#

5
playbooks/openvpn/roles/openvpn/tasks/openvpn.yml

@ -91,6 +91,11 @@
path: /etc/openvpn/ccd
mode: 0755
- name: /etc/openvpn/ccd/lan
template:
src: ccd/lan.j2
dest: /etc/openvpn/ccd/lan
- name: /etc/openvpn/server.conf
template:
src: server.conf.j2

1
playbooks/openvpn/roles/openvpn/templates/ccd/lan.j2

@ -0,0 +1 @@
iroute {{ openstack_internal_network_prefix }}.0 255.255.255.0
Loading…
Cancel
Save