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.

пре 10 година
пре 10 година
пре 10 година
пре 6 година
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. # Example for require/require_in/include
  42. # See: https://github.com/saltstack-formulas/apt-cacher-formula/pull/12 for details
  43. # apt_cacher_ng:
  44. # ...
  45. # include:
  46. # # custom states which must run before apt-cacher.ng.server
  47. # - repositories.sources
  48. # - apt-cacher-ng-fixes.server
  49. # require:
  50. # # custom states: i.e. a file which depends on the apt-cacher-ng package,
  51. # # but is required by the apt-cacher-ng server.
  52. # - 'file: /etc/apt-cacher-ng/backends_debian'
  53. # require_in:
  54. # # custom states: i.e. Debian package repos
  55. # - 'pkgrepo: deb jessie-backports'
  56. # - 'pkgrepo: deb-src jessie-backports'
  57. tofs:
  58. # The files_switch key serves as a selector for alternative
  59. # directories under the formula files directory. See TOFS pattern
  60. # doc for more info.
  61. # Note: Any value not evaluated by `config.get` will be used literally.
  62. # This can be used to set custom paths, as many levels deep as required.
  63. # files_switch:
  64. # - any/path/can/be/used/here
  65. # - id
  66. # - roles
  67. # - osfinger
  68. # - os
  69. # - os_family
  70. # All aspects of path/file resolution are customisable using the options below.
  71. # This is unnecessary in most cases; there are sensible defaults.
  72. # Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
  73. # I.e.: salt://template/files/default
  74. # path_prefix: template_alt
  75. # dirs:
  76. # files: files_alt
  77. # default: default_alt
  78. # The entries under `source_files` are prepended to the default source files
  79. # given for the state
  80. source_files:
  81. apt-cacher/ng/client/config/file:
  82. - 'alt_client.conf'
  83. apt-cacher/ng/server/config/file:
  84. - 'alt_server.conf'
  85. apt-cacher/ng/server/config/credentials:
  86. - 'alt_security.conf'