Skip to content

Commit baf29bb

Browse files
committed
configure stackhpc env for basic auth squid
1 parent 49ea0f6 commit baf29bb

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DO NOT MERGE:
2-
# proxy is steveb-dev on sussex-slurm-data: can't use common default, that's hostname which isn't in /etc/hosts
3-
# TODO: actually need to add username:password@ in here ...
4-
# TODO: maybe add some quotes to this?
5-
proxy_http_proxy: "http://{{ hostvars[groups['squid'] | first].ansible_host }}:{{ squid_http_port }}"
2+
# proxy is steveb-dev on sussex-slurm-data
3+
proxy_basic_user: rocky
4+
proxy_basic_password: "{{ vault_proxy_basic_password }}"
5+
proxy_http_address: "{{ hostvars[groups['squid'] | first].ansible_host }}"
66
proxy_plays_only: true
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# DO NOT COMMIT:
22
squid_cache_disk: 1024 # MB
3-
squid_cache_mem: "50 MB"
3+
squid_cache_mem: "50 MB"
4+
squid_acls:
5+
- acl ncsa_users proxy_auth REQUIRED
6+
squid_auth_param: |
7+
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwords
8+
auth_param basic children 5
9+
auth_param basic credentialsttl 1 minute

0 commit comments

Comments
 (0)