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.

20 lines
750B

  1. {% set apt_cacher_ng = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'server_address': 'localhost',
  4. 'server_bind_address': '0.0.0.0',
  5. 'server_port': '3142',
  6. 'server_extra_config': '',
  7. 'server_config': '/etc/apt-cacher-ng/zzz_acng.conf',
  8. 'server_cache_dir': '/var/cache/apt-cacher-ng',
  9. 'server_log_dir': '/var/log/apt-cacher-ng',
  10. 'user': 'apt-cacher-ng',
  11. 'group': 'apt-cacher-ng',
  12. 'pkg': 'apt-cacher-ng',
  13. 'service': 'apt-cacher-ng',
  14. 'credentials': '/etc/apt-cacher-ng/security.conf',
  15. 'client_config': '/etc/apt/apt.conf.d/80proxy',
  16. 'https_proxy': 'DIRECT',
  17. 'local_mirrors': [],
  18. },
  19. }, merge=salt['pillar.get']('apt_cacher_ng')) %}