Repos with recipes to deploy some infrastructure services
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

39 lignes
1.1 KiB

  1. config-dir={{ pdns_config_dir }}
  2. setuid={{ pdns_user }}
  3. setgid={{ pdns_group }}
  4. {% for config_item, value in pdns_config.items() | sort() %}
  5. {% if config_item not in ["config-dir", "launch", "setuid", "setgid"] %}
  6. {% if value == True %}
  7. {{ config_item }}=yes
  8. {% elif value == False %}
  9. {{ config_item }}=no
  10. {% elif value is string %}
  11. {{ config_item }}={{ value | string }}
  12. {% elif value is sequence %}
  13. {{ config_item }}={{ value | join(',') }}
  14. {% else %}
  15. {{ config_item }}={{ value | string }}
  16. {% endif %}
  17. {% endif %}
  18. {% endfor %}
  19. launch=
  20. {% for backend in pdns_backends | sort() -%}
  21. launch+={{ backend }}
  22. {% set backend_string = backend | replace(':', '-') %}
  23. {% for backend_item, value in pdns_backends[backend].items() | sort() -%}
  24. {% if value == True %}
  25. {{ backend_string }}-{{ backend_item }}=yes
  26. {% elif value == False %}
  27. {{ backend_string }}-{{ backend_item }}=no
  28. {% elif value == None %}
  29. {{ backend_string }}-{{ backend_item }}=
  30. {% else %}
  31. {{ backend_string }}-{{ backend_item }}={{ value | string }}
  32. {% endif %}
  33. {% endfor %}
  34. {% endfor -%}