varnish: create special tmp directory for syntax validation
gitea/ansible-roles/pipeline/head This commit looks good
Details
gitea/ansible-roles/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4d259d3c04
commit
c9ccda2277
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue