supernode_pkg_vars.yml 3.1 KB

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