Skip to content

Commit 2709f5f

Browse files
authoredMay 22, 2024··
Merge pull request #68 from galaxyproject/stratum1-no-squid
Support running Stratum 1 without Squid
2 parents 8a0f105 + 4e08550 commit 2709f5f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎defaults/main.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ cvmfs_stratum1_http_ports:
1818
cvmfs_localproxy_http_ports:
1919
- 3128
2020

21-
cvmfs_stratum1_apache_port: 8008
21+
cvmfs_stratum1_apache_port: "{{ cvmfs_stratum1_squid_enabled | ternary(8008, 80) }}"
2222
cvmfs_stratum1_cache_mem: 128 # MB
2323

24+
cvmfs_stratum1_squid_enabled: true
25+
2426
# Stratum 1 snapshot cron job timing, hash keys correspond to the cron module options:
2527
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/cron_module.html
2628
#

‎tasks/stratum1.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
ansible.builtin.include_tasks: squid.yml
2929
vars:
3030
_cvmfs_squid_conf_src: "{{ cvmfs_squid_conf_src | default('stratum1_squid.conf.j2') }}"
31+
when: cvmfs_stratum1_squid_enabled
3132

3233
- name: Include firewall tasks
3334
ansible.builtin.include_tasks: firewall.yml

0 commit comments

Comments
 (0)
Please sign in to comment.