From 0ec9401c6eb9e8a43eb6d5d16212de77e2936154 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 14 Aug 2024 20:12:41 -0500 Subject: [PATCH] r/squid: Support configuring auth_param The `auth_param` directive is used to configure proxy authentication helpers. --- roles/squid/templates/squid.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/squid/templates/squid.conf.j2 b/roles/squid/templates/squid.conf.j2 index f347c51..91b547a 100644 --- a/roles/squid/templates/squid.conf.j2 +++ b/roles/squid/templates/squid.conf.j2 @@ -1,4 +1,12 @@ cache_log {{ squid_cache_log }} +{% if squid_auth_param|d %} + +{% for scheme in squid_auth_param %} +{% for key, value in squid_auth_param[scheme].items() %} +auth_param {{ scheme }} {{ key }} {{ value }} +{% endfor %} +{% endfor %} +{% endif %} {% if squid_acl is not defined %} # # Recommended minimum configuration: