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.sls 364B

123456789101112131415161718
  1. {%- from "linux/map.jinja" import network with context %}
  2. {%- if network.enabled %}
  3. /etc/resolv.conf:
  4. file.managed:
  5. - source: salt://linux/files/resolv.conf
  6. - mode: 644
  7. - template: jinja
  8. - follow_symlinks: false
  9. - require:
  10. - service: resolvconf_service
  11. resolvconf_service:
  12. service.dead:
  13. - name: resolvconf
  14. - enable: false
  15. {%- endif %}