forked from egeland/puppet-varnish_incomplete
-
Notifications
You must be signed in to change notification settings - Fork 2
A puppet module for varnish - INCOMPLETE
License
tgrymatt/puppet-varnish
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
How to use this module. In the node definition, do something like this: include varnish varnish::backend{ 'be1': host => 'my.backendhost.example.com', port => '8080', probe_url => '/probe.cgi', probe_timeout => '50', probe_interval => '1', probe_window => '3', probe_threshold => '7', } varnish::director{ 'dir1': backends => [ 'be1', ], # backends must be an array, even if there's just one policy => 'round-robin', # policies are detailed here https://www.varnish-cache.org/docs/3.0/reference/vcl.html#directors } It is very important to have an default-director. This director will be used for every traffic, which is not explicit defined. varnish::director{ 'default_director': backends => [ 'be0', ], # backends must be an array, even if there's just one policy => 'round-robin', # policies are detailed here https://www.varnish-cache.org/docs/3.0/reference/vcl.html#directors } class {'varnish::vhost': vhosts_data => { 'site1.domain' => 'director1', 'site2.domain' => 'director1', 'site3.domain' => 'director2', } }
About
A puppet module for varnish - INCOMPLETE
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Puppet 100.0%