From 7ed228992ddcef223f8ee60cf0cadca89b709475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Tue, 23 Jan 2018 23:57:23 +0100 Subject: [PATCH] Added radvd --- roles/radvd/handlers/main.yml | 6 ++++++ roles/radvd/tasks/main.yml | 18 ++++++++++++++++++ roles/radvd/templates/radvd.conf.j2 | 15 +++++++++++++++ site.yml | 21 +++++++++++---------- 4 files changed, 50 insertions(+), 10 deletions(-) create mode 100644 roles/radvd/handlers/main.yml create mode 100644 roles/radvd/tasks/main.yml create mode 100644 roles/radvd/templates/radvd.conf.j2 diff --git a/roles/radvd/handlers/main.yml b/roles/radvd/handlers/main.yml new file mode 100644 index 0000000..37e9f4d --- /dev/null +++ b/roles/radvd/handlers/main.yml @@ -0,0 +1,6 @@ +--- + +- name: Restart radvd + service: name={{ item }} state=restarted + with_items: + - radvd diff --git a/roles/radvd/tasks/main.yml b/roles/radvd/tasks/main.yml new file mode 100644 index 0000000..b7d997f --- /dev/null +++ b/roles/radvd/tasks/main.yml @@ -0,0 +1,18 @@ +--- + +- name: Install radvd + apt: name={{ item }} + with_items: + - radvd + +- name: Configure radvd + template: src={{ item }}.j2 dest=/etc/{{ item }} + tags: radvd + notify: Restart radvd + with_items: + - radvd.conf + +- name: Start the radvd service + service: name={{ item }} state=started enabled=yes + with_items: + - radvd diff --git a/roles/radvd/templates/radvd.conf.j2 b/roles/radvd/templates/radvd.conf.j2 new file mode 100644 index 0000000..e769ec7 --- /dev/null +++ b/roles/radvd/templates/radvd.conf.j2 @@ -0,0 +1,15 @@ +interface br-{{ site_code }} { + AdvSendAdvert on; + IgnoreIfMissing on; + AdvManagedFlag off; + AdvOtherConfigFlag on; + MaxRtrAdvInterval 200; + AdvLinkMTU {{ mtu }}; + prefix {{ batman_ipv6 | ipaddr('address') | ipsubnet(64) }} + AdvOnLink on; + AdvAutonomous on; + AdvRouterAddr on; + }; + RDNSS {{ batman_ipv6 | ipaddr('address')}} { + }; +}; diff --git a/site.yml b/site.yml index 88c304d..f7244a8 100644 --- a/site.yml +++ b/site.yml @@ -10,16 +10,17 @@ - name: Setup gateway servers hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net] roles: - - batman - - bird - - fastd - - mesh-interfaces - - exit-ipv4 - - dns - - dhcpd - - respondd - - yanic - - web-gw +# - batman +# - bird +# - fastd +# - mesh-interfaces +# - exit-ipv4 +# - dns + - radvd +# - dhcpd +# - respondd +# - yanic +# - web-gw - name: Setup confluence server hosts: confluence.regensburg.freifunk.net