supernode_pkg_vars.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. supernodes:
  2. - name: node01
  3. public_ip: 192.168.77.21
  4. mesh_ip_v4: 10.42.0.8/16
  5. mesh_ip_v6: fdec:16a3:681b:865c::8/64
  6. mesh_mac: 96:48:76:b5:a3:61
  7. bat_mac: f2:43:13:c0:d7:06
  8. dhcp_range_start: 10.42.0.32
  9. dhcp_range_end: 10.42.5.254
  10. - name: node02
  11. public_ip: 192.168.77.22
  12. mesh_ip_v4: 10.42.0.16/16
  13. mesh_ip_v6: fdec:16a3:681b:865c::16/64
  14. mesh_mac: c2:e1:c6:e5:68:4c
  15. bat_mac: 1e:f5:dc:71:bb:5f
  16. dhcp_range_start: 10.42.6.2
  17. dhcp_range_end: 10.42.8.254
  18. supernode_mesh_mac: 96:48:76:b5:a3:61
  19. supernode_mesh_ipv4: 10.42.0.1/16
  20. supernode_as: '65403'
  21. supernode_bat_macaddress: f2:43:13:c0:d7:06
  22. supernode_mesh_ipv6: 2a03:2260:50:5::8/64
  23. supernode_local_ip: "{{ansible_default_ipv4.address}}"
  24. supernode_other_nameserver: 10.42.0.23
  25. supernode_other_ntp_server: 10.42.0.23
  26. supernode_dhcp_range_start: 10.42.9.1
  27. supernode_dhcp_range_end: 10.42.45.25
  28. supernode_top_domain: ff.test
  29. supernode_mesh_backbones:
  30. - name: "{{supernodes[1].name}}"
  31. remote_ip: "{{supernodes[1].public_ip}}"
  32. mesh_ip: "{{supernodes[1].mesh_ip_v4|ipaddr('address')}}"
  33. address_v6: "{{supernodes[1].mesh_ip_v6|ipaddr('address')}}"
  34. supernode_uplinks:
  35. - name: uplink1
  36. comment: Non existant uplink
  37. address: 172.16.0.1
  38. dstaddr: 172.16.0.2
  39. netmask: 255.255.255.252
  40. endpoint: 192.168.0.23
  41. address_v6: fd0a:1c06:d97c:e88d::2/64
  42. #adress_v6_pure: fd0a:1c06:d97c:e88d::2
  43. as: '65079'
  44. fastd_instances:
  45. - name: do00
  46. bind: any:10000 interface "eth0" default ipv4
  47. interface: tap00
  48. loglevel: info
  49. mode: tap
  50. method: salsa2012+umac
  51. peer_limit: 125
  52. mtu: 1280
  53. status_socket: /tmp/fastd00.sock
  54. on_up_script: |
  55. ip link set up $INTERFACE
  56. batctl if add $INTERFACE
  57. on_verify_script: |
  58. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  59. - name: do01
  60. bind: any:10001 interface "eth0" default ipv4
  61. interface: tap01
  62. loglevel: info
  63. mode: tap
  64. method: salsa2012+umac
  65. peer_limit: 125
  66. mtu: 1280
  67. status_socket: /tmp/fastd01.sock
  68. on_up_script: |
  69. ip link set up $INTERFACE
  70. batctl if add $INTERFACE
  71. on_verify_script: |
  72. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  73. fastd_instances_secret:
  74. - name: do00
  75. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  76. - name: do01
  77. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  78. supernode_interfaces:
  79. - name: eth0
  80. auto: true
  81. proto: inet
  82. type: dhcp
  83. usermanage_usersdb:
  84. fritz:
  85. comment: "Fritz Brinkhoffs"
  86. state: "present"
  87. groups: "sudo"
  88. keys:
  89. - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCfO2TgNUMcY9K8N9SsAU/LfVtlloO50n6NRxDER8dCi+t1ydalTbNdEj52cIjqvIEn458cCxdCwsNYeWqSVggX7vT7a+DgYZlJcRteHcb0lPYZplPuiZe3AUE9rHH48W4xEopv7J8Wz6hLng6Gb0TQx9HeVybQ5dn6CGyt8sOCKQ== Fritz Brinkhoffs"