summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-05 09:29:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-05 09:29:21 -0300
commit5257e34b64fdd8c5e2f54a7bf20e0e7085cca0e6 (patch)
tree9357f2a36380e56da40592cc84e171b3821475f7 /manifests
parent947a8be8355e7aaeb64258ffba30132b411fee2a (diff)
downloadpuppet-nginx-5257e34b64fdd8c5e2f54a7bf20e0e7085cca0e6.tar.gz
puppet-nginx-5257e34b64fdd8c5e2f54a7bf20e0e7085cca0e6.tar.bz2
Adds cache support for SSL-enabled sites
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp19
1 files changed, 12 insertions, 7 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 851d471..9997e97 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1,11 +1,16 @@
define nginx::site(
- $ensure = present,
- $ssl = present,
- $source = 'template',
- $certbot = true,
- $template = 'site',
- $backend = 'weblocal',
- $aliases = "*.${name}",
+ $ensure = present,
+ $ssl = present,
+ $source = 'template',
+ $certbot = true,
+ $template = 'site',
+ $backend = 'weblocal',
+ $aliases = "*.${name}",
+ $cache = false,
+ $cache_levels = '1:2',
+ $cache_size = '10m',
+ $cache_inactive = '600s',
+ $cache_max_size = '1m',
) {
nginx::site::config { $name:
ensure => $ensure,