formula-apt-cacher/pillar.example

63 lines
2 KiB
Text
Raw Permalink Normal View History

2014-07-06 19:27:51 -04:00
apt_cacher:
host: cacher.mycompany.com
admin_email: admin@mycompany.com
2014-09-04 00:18:34 -04:00
group: www-data
user: www-data
#ip for upstream connection
interface: 10.10.0.1
2014-07-06 19:27:51 -04:00
apt_cacher_ng:
# Setting up server_address is the minimal configuration requirement.
# Others options has default sane values (see map.jinja).
# server_address is the address access by apt-cacher-ng clients.
# It could be an IPv4 or a FQDN; This address MUST be resolvable by clients.
server_address: pkgproxy.example.com
# Server binds to this address.
# It could be the same value as server_address (in most cases).
server_bind_address: 192.168.33.10
server_port: 3142
server_cache_dir: /var/cache/apt-cacher-ng
server_log_dir: /var/log/apt-cacher-ng
server_extra_config: |
# Workaround apt-cacher-ng 500 Invalid header
# https://lists.alioth.debian.org/pipermail/apt-cacher-ng-users/2013-September/000082.html
ReuseConnections: 0
2014-07-06 19:27:51 -04:00
# Credentials for apt-cacher-ng Web management interface.
# http://<server_adress>:<server_port>/acng-report.html
admin_account: root
admin_passwd: admin
# HTTPS proxy
# "special keyword DIRECT meaning to use no proxies"
# - https://linux.die.net/man/5/apt.conf
# Default value ignores proxy for HTTPS connections
https_proxy: DIRECT
2018-04-27 16:15:46 -04:00
2018-04-27 16:27:40 -04:00
# Local mirrors don't need a proxy
# See https://linux.die.net/man/5/apt.conf
local_mirrors:
- 192.168.0.1
- host.example.test
2018-04-27 16:15:46 -04:00
##
# require/require_in/include example
# See https://github.com/saltstack-formulas/apt-cacher-formula/pull/12 for details
apt_cacher_ng:
...
include:
# custom states which must run before apt-cacher.ng.server
- repositories.sources
- apt-cacher-ng-fixes.server
require:
# custom states: i.e. a file which depends on the apt-cacher-ng package,
# but is required by the apt-cacher-ng server.
- 'file: /etc/apt-cacher-ng/backends_debian'
require_in:
# custom states: i.e. Debian package repos
- 'pkgrepo: deb jessie-backports'
- 'pkgrepo: deb-src jessie-backports'