A simple saltstack formula to install and configure Varnish.
This formula has been developed distributing id and state declarations in different files to make it usable in most situations. It should be useful in scenarios ranging from a simple install of the packages (without any special configuration) to a more complex set-up.
First, see if providing pillar data is enough for your customization needs That's the recommended way and should be enough for most cases. See that sometimes there's a key named extra_conf that's used to add arbitrary configuration lines in the templates provided.
When providing pillar data is not enough for your needs, you can apply the _Template Override and Files Switch_ (TOFS) pattern as described in the documentation file TOFS_pattern.md.
Installs the varnish package, and starts the associated varnish service.
Configures the varnish package.
Adds the varnish official repositories.