diff --git a/playbooks/roles/zuul-web/files/apache-htcacheclean.default b/playbooks/roles/zuul-web/files/apache-htcacheclean.default new file mode 100644 index 0000000000..2f8ceaac2b --- /dev/null +++ b/playbooks/roles/zuul-web/files/apache-htcacheclean.default @@ -0,0 +1,22 @@ +# This file must only contain KEY=VALUE lines. Do not use advanced +# shell script constructs! + +## run mode: cron, daemon +## run in daemon mode or as daily cron job +## default: daemon +HTCACHECLEAN_MODE=daemon + +## cache size +HTCACHECLEAN_SIZE=300M + +## interval: if in daemon mode, clean cache every x minutes +HTCACHECLEAN_DAEMON_INTERVAL=15 + +## path to cache +## must be the same as in CacheRoot directive +#HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk + +## additional options: +## -n : be nice +## -t : remove empty directories +HTCACHECLEAN_OPTIONS="-n" diff --git a/playbooks/roles/zuul-web/tasks/main.yaml b/playbooks/roles/zuul-web/tasks/main.yaml index 67a1349cee..3d0521a7a8 100644 --- a/playbooks/roles/zuul-web/tasks/main.yaml +++ b/playbooks/roles/zuul-web/tasks/main.yaml @@ -47,6 +47,14 @@ mode: 0644 notify: zuul Reload apache2 +- name: Copy htcacheclean config + copy: + src: apache-htcacheclean.default + dest: /etc/default/apache-htcacheclean + owner: root + group: root + mode: '0644' + - name: Install logging config copy: src: logging.conf