Skip to content

Commit

Permalink
Support running Stratum 1 without Squid
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed May 21, 2024
1 parent 8a0f105 commit 4e08550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ cvmfs_stratum1_http_ports:
cvmfs_localproxy_http_ports:
- 3128

cvmfs_stratum1_apache_port: 8008
cvmfs_stratum1_apache_port: "{{ cvmfs_stratum1_squid_enabled | ternary(8008, 80) }}"
cvmfs_stratum1_cache_mem: 128 # MB

cvmfs_stratum1_squid_enabled: true

# Stratum 1 snapshot cron job timing, hash keys correspond to the cron module options:
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/cron_module.html
#
Expand Down
1 change: 1 addition & 0 deletions tasks/stratum1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
ansible.builtin.include_tasks: squid.yml
vars:
_cvmfs_squid_conf_src: "{{ cvmfs_squid_conf_src | default('stratum1_squid.conf.j2') }}"
when: cvmfs_stratum1_squid_enabled

- name: Include firewall tasks
ansible.builtin.include_tasks: firewall.yml
Expand Down

0 comments on commit 4e08550

Please sign in to comment.