Saltstack Official Apt-Cacher Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314
  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 %}