Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394503
README.markdown
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
README.markdown
View Options
#varnish
[
](https://travis-ci.org/BashtonLtd/puppet-varnish)
Installs and configures Varnish. Requires you to have a VCL specified
in a parameter.
Supports Varnish 3 and Varnish 4
Currently only working on EL6 derived distros (RHEL6, CentOS 6, OEL 6,
Amazon Linux)
Requires Puppet >= 3.0
## Basic Usage
```puppet
class
{
'varnish'
:
secret
=>
'6565bd1c-b6d1-4ba3-99bc-3c7a41ffd94f'
,
}
varnish
::
vcl
{
'/etc/varnish/default.vcl'
:
content
=>
template
(
'data/varnish/default.vcl.erb'
),
}
```
### Parameters
All parameters are optional, but at minimum it is suggested you set a
secret.
|Parameter|Description|
|---------|-----------|
|addrepo|Whether to add the official Varnish repos|
|varnish_version|Major Varnish version - should be 3.0 or 4.0|
|secret|Secret for admin access|
|secret_file|File to store the secret|
|vcl_conf|Varnish vcl config file path|
|listen|IP to bind to|
|listen_port|TCP port to listen on|
|admin_listen|Admin IP to bind to|
|admin_port|TCP port for admin to listen on|
|min_threads|Minimum Varnish worker threads|
|max_threads|Maximum Varnish worker threads|
|thread_timeout|Terminate threads after this long idle|
|storage_file|File to mmap on disk for cache storage|
|storage_size|Size of storage file, eg 10G or 50%|
|runtime_params|hash of run-time parameters to be specified at startup|
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 4, 7:25 PM (5 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3302550
Attached To
rSPVARN Varnish puppet configuration
Event Timeline
Log In to Comment