uplink.yml 909 B

123456789101112131415161718192021222324252627
  1. local_uplink: "{{uplinks[0]}}"
  2. uplink_gre_tunnel:
  3. - name: "{{local_uplink.tunnel[0].supernode.name}}"
  4. local: "{{local_uplink.public_ip|ipaddr('address')}}"
  5. endpoint: "{{local_uplink.tunnel[0].supernode.public_ip|ipaddr('address')}}"
  6. netmask: "{{local_uplink.tunnel[0].tunnel_ip|ipaddr('netmask')}}"
  7. address: "{{local_uplink.tunnel[0].tunnel_ip|ipaddr('address')}}"
  8. dstaddr: "{{local_uplink.tunnel[0].supernode.uplink_tunnel_ip|ipaddr('address')}}"
  9. address_v6: "{{local_uplink.tunnel[0].address_v6}}"
  10. uplink_interfaces:
  11. - name: eth0
  12. auto: true
  13. proto: inet
  14. type: dhcp
  15. - name: eth1
  16. auto: true
  17. proto: inet
  18. type: static
  19. config:
  20. - key: address
  21. value: "{{local_uplink.public_ip|ipaddr('address')}}"
  22. - key: netmask
  23. value: "{{local_uplink.public_ip|ipaddr('netmask')}}"
  24. - key: broadcast
  25. value: "{{local_uplink.public_ip|ipaddr('broadcast')}}"