Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

9 年前
12345678910111213141516
  1. {%- from "linux/map.jinja" import network with context %}# Dynamic resolv.conf(5) file for glibc resolver(3) generated by salt-minion(1)
  2. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
  3. {% if network.resolv.get('search', False) -%}
  4. search {{ network.resolv.search|join(' ') }}
  5. {%- endif %}
  6. {% if network.resolv.get('domain', False) -%}
  7. domain {{ network.resolv.domain }}
  8. {%- endif %}
  9. {%- for nameserver in network.resolv.dns %}
  10. nameserver {{ nameserver }}
  11. {%- endfor %}
  12. {%- if network.resolv.get('options', False) %}
  13. {%- for option in network.resolv.options %}
  14. options {{ option }}
  15. {%- endfor %}
  16. {%- endif %}