|
|
@@ -7,10 +7,6 @@ |
|
|
|
|
|
|
|
# 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 %} |
|
|
|
{% from "apt-cacher/ng/map.jinja" import apt_cacher_ng with context %} |
|
|
|
AdminAuth: {{ apt_cacher_ng.admin_account }}:{{ apt_cacher_ng.admin_passwd }} |
|
|
|
|