Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kendrick-k/varnish4
Varnish 4 VCL with import structure to deploy with Ansible
https://github.com/kendrick-k/varnish4
ansible varnish
Last synced: 13 days ago
JSON representation
Varnish 4 VCL with import structure to deploy with Ansible
- Host: GitHub
- URL: https://github.com/kendrick-k/varnish4
- Owner: kendrick-k
- Created: 2015-03-27T21:08:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T15:07:30.000Z (about 8 years ago)
- Last Synced: 2024-10-11T19:57:44.056Z (27 days ago)
- Topics: ansible, varnish
- Language: Perl
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Varnish 4 VCL with Ansible
==========================# Varnish 4
## Varnish Processing States
Varnish [processing diagram](https://www.varnish-cache.org/docs/trunk/reference/states.html)
# Deploying
You can deploy your VCL into a directory with Ansible through Git into the varnish directory
/etc/varnish
and make a symlink to the varnish.vcl of this project (with the imports so, remove the default.vcl before) :ln -s varnish4/varnish.vcl default.vcl
ls -la would show you :
default.vcl -> varnish4/varnish.vcl
full path would be :/etc/varnish/default.vcl -> /etc/varnish/varnish4/varnish.vcl
In that way you would never have to overwrite the default.vcl and you could use the flexibility of Ansible to update your VCL and reload the Varnish configuration (and rollback if necessary).