host.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. local_node: "{{supernodes[2]}}"
  2. ffmap_backend_version: v2
  3. supernode_mesh_mac: "{{local_node.mesh_mac}}"
  4. supernode_mesh_ipv4: "{{local_node.mesh_ip_v4}}"
  5. supernode_bat_macaddress: "{{local_node.bat_mac}}"
  6. supernode_mesh_ipv6: "{{local_node.mesh_ip_v6}}"
  7. supernode_local_ip: "{{local_node.public_ip|default(ansible_default_ipv4.address)}}"
  8. supernode_public_interface: "{{local_node.public_interface|default(ansible_default_ipv4.interface)}}"
  9. supernode_dhcp_range_start: "{{local_node.dhcp_range_start}}"
  10. supernode_dhcp_range_end: "{{local_node.dhcp_range_end}}"
  11. supernode_mesh_backbones:
  12. - name: "{{supernodes[0].name}}"
  13. remote_ip: "{{supernodes[0].public_ip|ipaddr('address')}}"
  14. mesh_ip: "{{supernodes[0].mesh_ip_v4|ipaddr('address')}}"
  15. address_v6: "{{supernodes[0].mesh_ip_v6|ipaddr('address')}}"
  16. local_ip: "{{supernode_local_ip|ipaddr('address')}}"
  17. interface: "{{supernode_public_interface}}"
  18. - name: "{{supernodes[1].name}}"
  19. remote_ip: "{{supernodes[1].public_ip|ipaddr('address')}}"
  20. mesh_ip: "{{supernodes[1].mesh_ip_v4|ipaddr('address')}}"
  21. address_v6: "{{supernodes[1].mesh_ip_v6|ipaddr('address')}}"
  22. local_ip: "{{supernode_local_ip|ipaddr('address')}}"
  23. interface: "{{supernode_public_interface}}"
  24. supernode_interfaces:
  25. - name: eth0
  26. auto: true
  27. proto: inet
  28. type: dhcp
  29. - name: eth1
  30. auto: true
  31. proto: inet
  32. type: static
  33. config:
  34. - key: address
  35. value: "{{supernode_local_ip|ipaddr('address')}}"
  36. - key: netmask
  37. value: "{{supernode_local_ip|ipaddr('netmask')}}"
  38. - key: broadcast
  39. value: "{{supernode_local_ip|ipaddr('broadcast')}}"