Version information
This version is compatible with:
- Puppet Enterprise 3.x
- Puppet 3.x
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'camptocamp-varnish', '1.99.22'
Learn more about managing modules with a PuppetfileDocumentation
Varnish
Overview
This puppet module installs and configures varnish.
Usage
class { 'varnish':
multi_instances => false,
}
To manage varnishlog:
class { 'varnish::log': }
To manage varnishncsa:
class { 'varnish::ncsa': }
Reference
Classes:
Resources:
###Class: varnish
####enable
Should the service be enabled during boot time?
####multi_instances
Wether or not use the multi-instance configuration (see notes).
####start
Should the service be started by Puppet?
####admin_listen_address
Admin interface listen address.
####admin_listen_port
Admin interface listen port.
####group
Group for the varnishd worker processes
####listen_address
Default address to bind to.
####listen_port
Default port to bind to.
####secret_file
Shared secret file for admin interface.
####storage
Backend storage specification.
####ttl
Default TTL used when the backend does not specify one.
####user
User for the varnishd worker processes.
####vcl_conf
Main configuration file.
###Class: varnish::log
###Class: varnish::ncsa
###Resource: varnish_param
This resource is a native type and a series of Augeas-based providers.
It allows to modify varnish parameters where OSes put them by default:
- in /etc/default/varnish for Debian wheezy (as a list of parameters)
- in /etc/systemd/system/varnish.service for Debian jessie (as a list of parameters)
- in /etc/sysconfig/varnish for RedHat 6 (as standalone variables)
- in /etc/varnish/varnish.params for RedHat 7 (as standalone variables)
Example:
varnish_param { 'listen_address':
ensure => present,
value => 'localhost',
}
Notes
- Version 1.x supported only multi-instances configuration. As we never use this use case, we decided to switch to a single instance configuration.
- Version 1.99.x adds support for single instance configuration but still defaults to multi-instances configuration.
- Version 2.x will default to single instance configuration and deprecate multi-instances configuration.
- Version 3.x will remove multi-instances configuration support.
Types in this module release
2015-08-21 - Release 1.99.22
Use docker for acceptance tests
2015-08-19 - Release 1.99.21
- Fix providers
2015-06-29 - Release 1.99.20
- Fix instances by splitting lib into AugeasProviders::VarnishParam namespace
- Support generic -p param=value parameters in varnish_param (Debian only)
2015-06-29 - Release 1.99.19
- Fix multiple providers by adding base provider
- Fix service file location on Debian 8
2015-06-26 - Release 1.99.18
Fix strict_variables activation with rspec-puppet 2.2
2015-06-24 - Release 1.99.17
Replace apt-key with full length fingerprint
2015-05-28 - Release 1.99.16
Add beaker_spec_helper to Gemfile
2015-05-26 - Release 1.99.15
Use random application order in nodeset
2015-05-26 - Release 1.99.14
add utopic & vivid nodesets
2015-05-25 - Release 1.99.13
Don't allow failure on Puppet 4
2015-05-14 - Release 1.99.12
Add missing ownership
2015-05-13 - Release 1.99.11
Add puppet-lint-file_source_rights-check gem
2015-05-12 - Release 1.99.10
Don't pin beaker
2015-04-27 - Release 1.99.9
Add nodeset ubuntu-12.04-x86_64-openstack
2015-04-17 - Release 1.99.8
Add beaker nodeset
2015-04-15 - Release 1.99.7
Use file() instead of fileserver (way faster)
2015-04-03 - Release 1.99.6
Confine rspec pinning to ruby 1.8
2015-03-24 - Release 1.99.5
Various rspec improvements Add puppet-lint plugins Lint/fix for Puppet 4
2015-01-07 - Release 1.99.4
Fix unquoted strings in cases
2014-12-18 - Release 1.99.2
Various improvements in unit tests
2014-12-09 Release 1.99.1
Fix metadata.json Add varnish_param type & providers
Dependencies
- puppetlabs/stdlib (>=3.2.0 <5.0.0)
- herculesteam/augeasproviders_core (2.x)
- herculesteam/augeasproviders_shellvar (2.x)