varnish: create special tmp directory for syntax validation
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Jérémy Lecour 2022-11-02 19:45:15 +01:00 committed by Jérémy Lecour
parent 4d259d3c04
commit c9ccda2277
2 changed files with 12 additions and 0 deletions

View File

@ -15,6 +15,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
* evolinux-base: replace regular kernel by cloud kernel on virtual servers
* nagios-nrpe: check_haproxy_stats supports DRAIN status
* lxc-php: set php-fpm umask to 007
* varnish: create special tmp directory for syntax validation
### Changed

View File

@ -151,4 +151,15 @@
- config
- update-config
# To validate the configuration, we must use a tmp directory that is mounted as exec
# We usually use /vat/tmp-cache then validate the syntax with this command:
# sudo -u vcache TMPDIR=/var/tmp-vcache varnishd -Cf /etc/varnish/default.vcl > /dev/null
- name: Special tmp directory
file:
path: "{{ varnish_tmp_dir }}"
state: directory
owner: vcache
group: varnish
mode: "0750"
- include: munin.yml