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.

16 lines
336B

  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. linux_resolvconf_disable:
  9. cmd.run:
  10. - name: resolvconf --disable-updates
  11. - onlyif: resolvconf --updates-are-enabled
  12. {%- endif %}