|
|
|
|
|
|
|
|
|
|
|
# vim:sts=2 ts=2 sw=2 et ai |
|
|
|
|
|
{% from "apt-cacher/map.jinja" import apt_cacher with context %} |
|
|
# This file is managed by Salt, do not edit by hand!! |
|
|
# This file is managed by Salt, do not edit by hand!! |
|
|
{% set apt_cacher = pillar.get('apt-cacher', {}) -%} |
|
|
|
|
|
################################################################################# |
|
|
################################################################################# |
|
|
# This is the config file for apt-cacher. On most Debian systems you can safely # |
|
|
# This is the config file for apt-cacher. On most Debian systems you can safely # |
|
|
# leave the defaults alone. # |
|
|
# leave the defaults alone. # |
|
|
|
|
|
|
|
|
# sufficient permissions within the cache and log directories. Comment the |
|
|
# sufficient permissions within the cache and log directories. Comment the |
|
|
# settings to run apt-cacher as the invoking user. |
|
|
# settings to run apt-cacher as the invoking user. |
|
|
# |
|
|
# |
|
|
group = www-data |
|
|
|
|
|
user = www-data |
|
|
|
|
|
|
|
|
group = {{ apt_cacher.get('group', 'www-data') }} |
|
|
|
|
|
user = {{ apt_cacher.get('user', 'www-data') }} |
|
|
|
|
|
|
|
|
# optional setting, binds the listening daemon to specified IP(s). |
|
|
# optional setting, binds the listening daemon to specified IP(s). |
|
|
# |
|
|
# |
|
|
|
|
|
|
|
|
# Specify an interface name, an IP address or a host name. |
|
|
# Specify an interface name, an IP address or a host name. |
|
|
# If unset, the default route is used. |
|
|
# If unset, the default route is used. |
|
|
# |
|
|
# |
|
|
|
|
|
{%- if apt_cacher.get('interface', 'False') != 'False' %} |
|
|
|
|
|
interface = {{ apt_cacher.get('interface', 'False') }} |
|
|
|
|
|
{%- endif %} |
|
|
#interface = eth0 |
|
|
#interface = eth0 |
|
|
|
|
|
|
|
|
# Rate limiting sets the maximum bandwidth in bytes per second to use for |
|
|
# Rate limiting sets the maximum bandwidth in bytes per second to use for |