Installs varnish from https://packagecloud.io/varnishcache/ for CentOS
Standard library functions https://varnish-cache.org/docs/5.0/reference/vmod_std.generated.html?highlight=vmod_std
VCL manual https://varnish-cache.org/docs/5.0/reference/vcl.html#varnish-configuration-language
You can enable debug mode which will add addition headers like below
X-Server-Identity: chef-varnish
X-Debug-Varnish-Cache: HIT
X-Debug-Varnish-Hits: 15
X-Debug-Varnish-Restarts: 0
X-Debug-Varnish-Cache-Age: 190
X-Debug-Varnish-Cache-Expire: -70.330
X-Debug-Varnish-Grace-Expire: 86400.000
# You can just use `make all` which will do the following
make bundle
make berks
make vagrant
# then visit http://10.100.100.100/
Changing the versions of node can be done via the attributes, see attributes.rb
default[:varnish][:version] = '60'
"run_list": [
"recipe[varnish-centos]"
]
This cookbook assumes you already have epel-release
installed.
- CentOS 7.x
- Chef 13.1