You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ansible/roles/squid/README.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,30 @@
2
2
3
3
Deploy a caching proxy.
4
4
5
-
**NB:** The default configuration is aimed at providing a proxy for package installs etc. for
6
-
nodes which do not have direct internet connectivity. It assumes access to the proxy is protected
7
-
by the OpenStack security groups applied to the cluster. The generated configuration should be
8
-
reviewed if this is not case.
5
+
**NB:** This role provides two default configurations, selected by setting
6
+
`squid_conf_template`:
7
+
-`squid.conf.j2`: This is aimed at providing a proxy for package installs etc.
8
+
for nodes which do not have direct internet connectivity. It assumes access
9
+
to the proxy is protected by the OpenStack security groups applied to the
10
+
cluster. The generated configuration should be reviewed if this is not case.
11
+
-`squid-eessi.conf.j2`: This provides a proxy server for EESSI clients. It uses
12
+
the [recommended configuration](https://www.eessi.io/docs/tutorial/access/proxy/#configuration)
13
+
which assumes a server with:
14
+
- 10Gbit link or faster to the client systems
15
+
- a sufficiently powerful CPU
16
+
- a decent amount of memory for the kernel cache (tens of GBs)
17
+
- fast local storage - 50GB is used for cache
18
+
For this use-case the above link recommends at least two squid servers and at
19
+
least one for every (100-500) client nodes.
9
20
10
21
## Role Variables
22
+
-`squid_conf_template`: Optional str. Path (using Ansible search paths) to
23
+
squid.conf template. Default is in-role `squid.conf.j2` template as above.
24
+
25
+
### Role Variables for squid_conf_template=squid.conf.j2
11
26
12
27
Where noted these map to squid parameters of the same name without the `squid_` prefix - see [squid documentation](https://www.squid-cache.org/Doc/config) for details.
13
28
14
-
-`squid_conf_template`: Optional str. Path (using Ansible search paths) to squid.conf template. Default is in-role template.
15
29
-`squid_started`: Optional bool. Whether to start squid service. Default `true`.
16
30
-`squid_enabled`: Optional bool. Whether squid service is enabled on boot. Default `true`.
17
31
-`squid_cache_mem`: Required str. Size of memory cache, e.g "1024 KB", "12 GB" etc. See squid parameter.
@@ -37,3 +51,12 @@ Where noted these map to squid parameters of the same name without the `squid_`
37
51
http_access deny all
38
52
39
53
See squid parameter.
54
+
55
+
### Role Variables for squid_conf_template=squid-eessi.conf.j2
56
+
57
+
-`squid_eessi_clients`: Optional string. CIDR specifying clients allowed to
58
+
access this proxy. The default is to use the CIDR of the host's default IPv4
59
+
interface, which should allow access from the [cluster network](../../../docs/networks.md).
60
+
For clusters with multiple networks this may not be appropriate.
0 commit comments