Saltstack Official Apt-Cacher Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

65 rindas
2.1KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. apt_cacher:
  5. host: cacher.mycompany.com
  6. admin_email: admin@mycompany.com
  7. group: www-data
  8. user: www-data
  9. # ip for upstream connection
  10. interface: 10.10.0.1
  11. apt_cacher_ng:
  12. # Setting up server_address is the minimal configuration requirement.
  13. # Others options has default sane values (see map.jinja).
  14. # server_address is the address access by apt-cacher-ng clients.
  15. # It could be an IPv4 or a FQDN; This address MUST be resolvable by clients.
  16. server_address: pkgproxy.example.com
  17. # Server binds to this address.
  18. # It could be the same value as server_address (in most cases).
  19. server_bind_address: 192.168.33.10
  20. server_port: 3142
  21. server_cache_dir: /var/cache/apt-cacher-ng
  22. server_log_dir: /var/log/apt-cacher-ng
  23. server_extra_config: |
  24. # Workaround apt-cacher-ng 500 Invalid header
  25. # https://lists.alioth.debian.org/pipermail/apt-cacher-ng-users/2013-September/000082.html
  26. ReuseConnections: 0
  27. # Credentials for apt-cacher-ng Web management interface.
  28. # http://<server_adress>:<server_port>/acng-report.html
  29. admin_account: root
  30. admin_passwd: admin
  31. # HTTPS proxy
  32. # "special keyword DIRECT meaning to use no proxies"
  33. # - https://linux.die.net/man/5/apt.conf
  34. # Default value ignores proxy for HTTPS connections
  35. https_proxy: DIRECT
  36. # Local mirrors don't need a proxy
  37. # See https://linux.die.net/man/5/apt.conf
  38. local_mirrors:
  39. - 192.168.0.1
  40. - host.example.test
  41. # yamllint disable-line rule:comments-indentation
  42. # Example for require/require_in/include
  43. # See: https://github.com/saltstack-formulas/apt-cacher-formula/pull/12 for details
  44. # apt_cacher_ng:
  45. # ...
  46. # include:
  47. # # custom states which must run before apt-cacher.ng.server
  48. # - repositories.sources
  49. # - apt-cacher-ng-fixes.server
  50. # require:
  51. # # custom states: i.e. a file which depends on the apt-cacher-ng package,
  52. # # but is required by the apt-cacher-ng server.
  53. # - 'file: /etc/apt-cacher-ng/backends_debian'
  54. # require_in:
  55. # # custom states: i.e. Debian package repos
  56. # - 'pkgrepo: deb jessie-backports'
  57. # - 'pkgrepo: deb-src jessie-backports'