formula-apt-cacher/apt-cacher/ng/files/security.conf
2018-04-27 13:09:02 +02:00

17 lines
653 B
Plaintext

# 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
{%- 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 %}