Skip to content

Instantly share code, notes, and snippets.

@kevinquinnyo
Created October 1, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinquinnyo/3dfdd689bfc748b4dc19 to your computer and use it in GitHub Desktop.
Save kevinquinnyo/3dfdd689bfc748b4dc19 to your computer and use it in GitHub Desktop.
include:
- varnish.config
base:
pkgrepo.managed:
- humanname: Varnish Cache 4.0
- name: deb https://repo.varnish-cache.org/ubuntu/ precise varnish-4.0
- dist: trusty
- file: /etc/apt/sources.list.d/varnish-cache.list
- require_in:
- pkg: varnish
- gpgcheck: 1
- key_url: https://repo.varnish-cache.org/GPG-key.txt
varnish:
pkg:
- installed
service.running:
- require:
- pkg: varnish
- sls: varnish.config
- watch:
- file: /etc/varnish/default.vcl
varnishncsa:
service.running:
- require:
- pkg: varnish
- sls: varnish.config
- watch:
- file: /etc/default/varnishncsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment