Saltstack Official Apt-Cacher 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.

15 lines
362B

  1. {% if grains['os_family'] == 'Debian' %}
  2. {% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context %}
  3. {%- if apt_cacher_ng.server_address %}
  4. {{ apt_cacher_ng.client_config }}:
  5. file:
  6. - managed
  7. - user: root
  8. - group: root
  9. - mode: '644'
  10. - source: salt://apt-cacher/ng/files/client.conf
  11. - template: jinja
  12. {%- endif %}
  13. {% endif %}