Repos with recipes to deploy some infrastructure services
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

30 行
860 B

  1. config-dir={{ pdns_rec_config_dir }}
  2. setuid={{ pdns_rec_user }}
  3. setgid={{ pdns_rec_group }}
  4. {% for config_item, value in pdns_rec_config.items() | sort() %}
  5. {% if config_item not in ["config-dir", "setuid", "setgid"] %}
  6. {% if config_item == 'threads' %}
  7. {{ config_item }}={{ value | string }}
  8. {% elif value == True %}
  9. {{ config_item }}=yes
  10. {% elif value == False %}
  11. {{ config_item }}=no
  12. {% elif value is string %}
  13. {{ config_item }}={{ value | string }}
  14. {% elif value is sequence %}
  15. {{ config_item }}={{ value | join(',') }}
  16. {% else %}
  17. {{ config_item }}={{ value | string }}
  18. {% endif %}
  19. {% endif %}
  20. {% endfor %}
  21. {% if pdns_rec_config_lua_file_content != "" %}
  22. lua-config-file={{ pdns_rec_config_lua }}
  23. {% endif %}
  24. {% if pdns_rec_config_dns_script_file_content != "" %}
  25. lua-dns-script={{ pdns_rec_config_dns_script }}
  26. {% endif %}