Browse Source

Added supernode role

Till Klocke 9 năm trước cách đây
mục cha
commit
a580ad8554

+ 1 - 39
playbooks/group_vars/all/supernodes.yml

@@ -30,42 +30,4 @@ supernodes:
     bat_mac: f6:9c:fe:9d:d4:da
     public_interface: eth1
 
-supernode_as: '65403'
-
-fastd_instances:
-  - name: do00
-    bind: any:10000 interface "eth0" default ipv4
-    interface: tap00
-    loglevel: info
-    mode: tap
-    method: salsa2012+umac
-    peer_limit: 125
-    mtu: 1280
-    status_socket: /tmp/fastd00.sock
-    peer_dir: /etc/fastd/do00/dummy
-    on_up_script: |
-      ip link set up $INTERFACE
-      batctl if add $INTERFACE
-    on_verify_script: |
-      /etc/fastd/fastd-blacklist.sh $PEER_KEY
-  - name: do01
-    bind: any:10001 interface "eth0" default ipv4
-    interface: tap01
-    loglevel: info
-    mode: tap
-    method: salsa2012+umac
-    peer_limit: 125
-    mtu: 1280
-    status_socket: /tmp/fastd01.sock
-    peer_dir: /etc/fastd/do01/dummy
-    on_up_script: |
-      ip link set up $INTERFACE
-      batctl if add $INTERFACE
-    on_verify_script: |
-      /etc/fastd/fastd-blacklist.sh $PEER_KEY
-
-fastd_instances_secret:
-  - name: do00
-    secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
-  - name: do01
-    secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
+supernode_as: '65403'

+ 31 - 0
playbooks/group_vars/supernodes/fastd.yml

@@ -0,0 +1,31 @@
+fastd_instances:
+  - name: do00
+    bind: any:10000 interface "eth0" default ipv4
+    interface: tap00
+    loglevel: info
+    mode: tap
+    method: salsa2012+umac
+    peer_limit: 125
+    mtu: 1280
+    status_socket: /tmp/fastd00.sock
+    peer_dir: /etc/fastd/do00/dummy
+    on_up_script: |
+      ip link set up $INTERFACE
+      batctl if add $INTERFACE
+    on_verify_script: |
+      /etc/fastd/fastd-blacklist.sh $PEER_KEY
+  - name: do01
+    bind: any:10001 interface "eth0" default ipv4
+    interface: tap01
+    loglevel: info
+    mode: tap
+    method: salsa2012+umac
+    peer_limit: 125
+    mtu: 1280
+    status_socket: /tmp/fastd01.sock
+    peer_dir: /etc/fastd/do01/dummy
+    on_up_script: |
+      ip link set up $INTERFACE
+      batctl if add $INTERFACE
+    on_verify_script: |
+      /etc/fastd/fastd-blacklist.sh $PEER_KEY

+ 5 - 0
playbooks/group_vars/supernodes/fastd_secrets.yml

@@ -0,0 +1,5 @@
+fastd_instances_secret:
+  - name: do00
+    secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
+  - name: do01
+    secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e

+ 7 - 0
playbooks/supernode.yml

@@ -0,0 +1,7 @@
+---
+
+- hosts: supernodes
+  sudo: true
+  roles:
+  - batman
+  - ff-supernode