Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

resolv.conf 632B

9 years ago
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 %}