tinc.conf.j2 856 B

123456789101112131415161718192021222324252627
  1. # {{ ansible_managed }}
  2. Name = {{ tinc_hostname }}
  3. {% if (tinc_device_tap is defined) and (os_name == "FreeBSD") %}
  4. Device = {{ tinc_device_tap }}
  5. {% endif %}
  6. Mode = switch
  7. {% if tinc_af is defined %}
  8. AddressFamily = {{ tinc_af }}
  9. {% endif %}
  10. {% if tinc_port is defined %}
  11. Port = {{ tinc_port }}
  12. {% endif %}
  13. {% if tinc_bindtoaddresses is defined %}{% for _bindtoaddress in tinc_bindtoaddresses %}
  14. BindToAddress = {{ _bindtoaddress }}
  15. {% endfor %}{% endif %}
  16. {% if tinc_maxtimeout is defined %}
  17. MaxTimeout = {{ tinc_maxtimeout }}
  18. {% endif %}
  19. {% if tinc_pingtimeout is defined %}
  20. PingTimeout = {{ tinc_pingtimeout }}
  21. {% endif %}
  22. GraphDumpFile = /var/run/tinc.{{ tinc_name }}.dot
  23. {% if _connecthosts is defined %}{% for _connecthost in _connecthosts %}
  24. {% if _connecthost != tinc_hostname %}
  25. ConnectTo = {{ _connecthost }}
  26. {% endif %}
  27. {% endfor %}{% endif %}