diff --git a/roles/0-once/templates/local_facts.fact.j2 b/roles/0-once/templates/local_facts.fact.j2 index 04958b78..6f2f47d9 100644 --- a/roles/0-once/templates/local_facts.fact.j2 +++ b/roles/0-once/templates/local_facts.fact.j2 @@ -20,6 +20,13 @@ else PHPLIB_DIR=/usr/lib/php fi +if [ -d /usr/lib64/squid ] +then + SQUID_DIR=/usr/lib64/squid +else + SQUID_DIR=/usr/lib/squid +fi + if [ -f /proc/device-tree/mfg-data/MN ] then XO_VERSION=`cat /proc/device-tree/mfg-data/MN` @@ -48,6 +55,7 @@ fi ANSIBLE_VERSION=$(ansible --version|head -n 1|cut -f 2 -d " ") cat < diff --git a/roles/network/templates/squid/squid-xs.conf.j2 b/roles/network/templates/squid/squid-xs.conf.j2 index 05d362da..b35583be 100755 --- a/roles/network/templates/squid/squid-xs.conf.j2 +++ b/roles/network/templates/squid/squid-xs.conf.j2 @@ -203,6 +203,23 @@ persistent_request_timeout 1 minute client_lifetime 1 hour ident_timeout 10 seconds +{% if capture_enabled %} +################################## +# config splash page +# without session.db, a restart will re-enable the splash -- for testing +#external_acl_type session ttl=300 negative_ttl=0 children=1 concurrency=100 %SRC {{ squid_dir }}/ext_session_acl -t 3600 -b /var/run/squid/session.db +external_acl_type session ttl=300 negative_ttl=0 children=1 concurrency=100 %SRC {{ squid_dir }}/ext_session_acl -t 60 +# +# +acl session external session +# +http_access deny !session +# +# # Deny page to display +deny_info {{ redirect_url }} session +################################## +{% endif %} + http_access allow manager localhost http_access deny manager