ソースを参照

role ff-supernode now installs and configures unbound. zone configuration has to be done in host or group vars

Till Klocke 9 年 前
コミット
906e16a93c
2 ファイル変更23 行追加5 行削除
  1. 1 0
      roles/ff-supernode/meta/main.yml
  2. 22 5
      roles/ff-supernode/vars/main.yml

+ 1 - 0
roles/ff-supernode/meta/main.yml

@@ -22,3 +22,4 @@ dependencies:
 - pdellaert.dhcp_server
 - pdellaert.dhcp_server
 - debops.radvd
 - debops.radvd
 - alfred
 - alfred
+- jdauphant.unbound

+ 22 - 5
roles/ff-supernode/vars/main.yml

@@ -39,12 +39,29 @@ radvd_default_interface_options: |
   {
   {
   };
   };
 
 
-radvd_default_interface_nameservers:
-  - rdnss: 
-    - "{{supernode_mesh_ipv6}}"
-
 supervisor_services:
 supervisor_services:
   - name: alfred
   - name: alfred
     command: /usr/local/sbin/alfred -i alfred0
     command: /usr/local/sbin/alfred -i alfred0
   - name: batadv-vis
   - name: batadv-vis
-    command: /usr/local/sbin/batadv-vis -s
+    command: /usr/local/sbin/batadv-vis -s
+
+unbound_configuration:
+    - verbosity: 1
+    - do-ip4: "yes"
+    - do-ip6: "yes"
+    - num-threads: 1
+    - pidfile: "/var/run/unbound.pid"
+    - logfile: "{{unbound_logfile}}"
+    - module-config: '"iterator"'
+
+unbound_forward_zone_active : true
+unbound_forward_zone:
+  - 151.80.64.190
+  - 85.14.255.33
+unbound_interfaces:
+  - 0.0.0.0
+  - ::0
+unbound_access_control:
+  - 10.233.0.0/16 allow
+  - "2a03:2260:50:5::/64 allow"
+  - "fe80::/10 allow"