2014-07-06 19:27:51 -04:00
|
|
|
|
|
|
|
# This file contains confidential data and should be protected with file
|
|
|
|
# permissions from being read by untrusted users.
|
|
|
|
#
|
|
|
|
# NOTE: permissions are fixated with dpkg-statoverride on Debian systems.
|
|
|
|
# Read its manual page for details.
|
|
|
|
|
|
|
|
# Basic authentication with username and password, required to
|
|
|
|
# visit pages with administrative functionality. Format: username:password
|
2018-04-27 07:04:10 -04:00
|
|
|
{%- set cfg = salt['pillar.get']('apt_cacher_ng', {}) %}
|
|
|
|
{%- set admin_account = cfg.get('admin_account', False) %}
|
|
|
|
{%- set admin_passwd = cfg.get('admin_passwd', False) %}
|
|
|
|
{%- if admin_account and admin_passwd %}
|
|
|
|
AdminAuth: {{ admin_account }}:{{ admin_passwd }}
|
|
|
|
{%- endif %}
|
2014-07-06 19:27:51 -04:00
|
|
|
|