supernode 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. local_node: "{{supernodes[1]}}"
  2. supernode_mesh_mac: "{{local_node.mesh_mac}}"
  3. supernode_mesh_ipv4: "{{local_node.mesh_ip_v4}}"
  4. supernode_bat_macaddress: "{{local_node.bat_mac}}"
  5. supernode_mesh_ipv6: "{{local_node.mesh_ip_v6}}"
  6. supernode_local_ip: "{{ansible_default_ipv4.address}}"
  7. supernode_dhcp_range_start: "{{local_node.dhcp_range_start}}"
  8. supernode_dhcp_range_end: "{{local_node.dhcp_range_end}}"
  9. supernode_mesh_backbones:
  10. - name: "{{supernodes[0].name}}"
  11. remote_ip: "{{supernodes[0].public_ip}}"
  12. mesh_ip: "{{supernodes[0].mesh_ip_v4|ipaddr('address')}}"
  13. address_v6: "{{supernodes[0].mesh_ip_v6|ipaddr('address')}}"
  14. supernode_other_nameserver: "{{supernode_mesh_backbones|map(attribute='mesh_ip')|map('ipaddr','address')|join(' ')}}"
  15. supernode_other_ntp_server: "{{supernode_mesh_backbones|map(attribute='mesh_ip')|map('ipaddr','address')|join(' ')}}"
  16. supernode_uplinks:
  17. - name: uplink1
  18. comment: Non existant uplink
  19. address: 172.16.0.1
  20. dstaddr: 172.16.0.2
  21. netmask: 255.255.255.252
  22. endpoint: 192.168.0.23
  23. address_v6: fd0a:1c06:d97c:e88d::2/64
  24. as: '65079'
  25. supernode_interfaces:
  26. - name: eth0
  27. auto: true
  28. proto: inet
  29. type: dhcp