2014-07-06 19:27:51 -04:00
|
|
|
{% set apt_cacher_ng = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'server_address': 'localhost',
|
|
|
|
'server_bind_address': '0.0.0.0',
|
|
|
|
'server_port': '3142',
|
2015-09-25 10:44:00 -04:00
|
|
|
'server_extra_config': '',
|
2014-07-06 19:27:51 -04:00
|
|
|
'server_config': '/etc/apt-cacher-ng/zzz_acng.conf',
|
|
|
|
'server_cache_dir': '/var/cache/apt-cacher-ng',
|
|
|
|
'server_log_dir': '/var/log/apt-cacher-ng',
|
|
|
|
'user': 'apt-cacher-ng',
|
|
|
|
'group': 'apt-cacher-ng',
|
|
|
|
'pkg': 'apt-cacher-ng',
|
|
|
|
'service': 'apt-cacher-ng',
|
|
|
|
'credentials': '/etc/apt-cacher-ng/security.conf',
|
|
|
|
'client_config': '/etc/apt/apt.conf.d/80proxy',
|
2018-04-27 15:55:44 -04:00
|
|
|
'https_proxy': 'DIRECT',
|
2014-07-06 19:27:51 -04:00
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('apt_cacher_ng')) %}
|