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.

26 lines
414B

  1. {%- from "linux/map.jinja" import network with context %}
  2. {%- if network.enabled %}
  3. {%- if grains.os_family == 'Debian' %}
  4. {%- if network.proxy.host == 'none' %}
  5. /etc/profile.d/proxy.sh:
  6. file.absent
  7. /etc/apt/apt.conf.d/95proxies:
  8. file.absent
  9. {%- else %}
  10. /etc/apt/apt.conf.d/95proxies:
  11. file.managed:
  12. - template: jinja
  13. - source: salt://linux/files/95proxies
  14. {%- endif %}
  15. {%- endif %}
  16. {%- endif %}