Browse Source

Merge branch 'heimdull-master'

tags/v0.5.0
Alexander Weidinger 6 years ago
parent
commit
ab5e96800e
3 changed files with 9 additions and 2 deletions
  1. +2
    -2
      apt-cacher/ng/files/client.conf
  2. +1
    -0
      apt-cacher/ng/map.jinja
  3. +6
    -0
      pillar.example

+ 2
- 2
apt-cacher/ng/files/client.conf View File

@@ -1,3 +1,3 @@
{% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context %}
{% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context -%}
Acquire::http::Proxy "http://{{ apt_cacher_ng.server_address }}:{{ apt_cacher_ng.server_port }}";
Acquire::https::Proxy "DIRECT";
Acquire::https::Proxy "{{ apt_cacher_ng.https_proxy }}";

+ 1
- 0
apt-cacher/ng/map.jinja View File

@@ -13,5 +13,6 @@
'service': 'apt-cacher-ng',
'credentials': '/etc/apt-cacher-ng/security.conf',
'client_config': '/etc/apt/apt.conf.d/80proxy',
'https_proxy': 'DIRECT',
},
}, merge=salt['pillar.get']('apt_cacher_ng')) %}

+ 6
- 0
pillar.example View File

@@ -29,3 +29,9 @@ apt_cacher_ng:
# 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

Loading…
Cancel
Save