Skip to content

Chef cookbook to ease installing & configuration Varnish 6 for CentOS 7

License

Notifications You must be signed in to change notification settings

usemarkup/chef-varnish

Repository files navigation

Chef Varnish

Build Status

Installs varnish from https://packagecloud.io/varnishcache/ for CentOS

Varnish Documentation

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

Debug Mode

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

Using Vagrant

# You can just use `make all` which will do the following

make bundle
make berks
make vagrant

# then visit http://10.100.100.100/

Usage

Changing the versions of node can be done via the attributes, see attributes.rb

default[:varnish][:version] = '60'
  "run_list": [
    "recipe[varnish-centos]"
  ]

Requirements

This cookbook assumes you already have epel-release installed.

Support

  • CentOS 7.x

Chef Support (tested)

  • Chef 13.1

About

Chef cookbook to ease installing & configuration Varnish 6 for CentOS 7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published