config.json.j2 960 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "global" : {
  3. "mcast_group" : "ff02::2:1001",
  4. "port" : 1001,
  5. "cache_time_s" : 59,
  6. "interface_type_regex_patterns" : {
  7. "l2tp" : "br.+",
  8. "gretap" : "t.+"
  9. },
  10. "additional_static_nodeinfo" : {
  11. "owner" : {
  12. "contact" : "{{ server_besitzer }}"
  13. },
  14. "software": {
  15. "autoupdater": {
  16. "branch": "{{ group_names | last }}",
  17. "enabled": true
  18. }
  19. },
  20. "advanced-stats": {
  21. "store-stats": true
  22. },
  23. "node_type" : {
  24. "is_infrastructure" : true,
  25. "type" : "{{ group_names | last }}"
  26. }
  27. }
  28. },
  29. "domains" : [
  30. {% if domaenenliste is defined %}
  31. {% set respondd_domaenen = domaenenliste %}
  32. {% else %}
  33. {% set respondd_domaenen = domaenen %}
  34. {% endif %}
  35. {% for domaene in respondd_domaenen|dictsort %}
  36. {
  37. "bat_iface": "bat{{domaene[0]}}",
  38. {% if 'gateways' in group_names %}
  39. "br_iface": "br{{domaene[0]}}",
  40. {%endif%}
  41. "site_code": "ffdo-d{{domaene[0]}}"
  42. }{% if not loop.last %},{% endif %}
  43. {% endfor %}
  44. ]
  45. }