diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-29 14:11:07 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-29 14:11:07 -0200 |
commit | 4dc88085101cf28ed8afba7cfd7fe5461ea64595 (patch) | |
tree | 5845cba55a9f4c63ccfc541e24c7428f64093d4e | |
parent | 41e1a44b15b2b402041e5ab763d95b0092b7c77f (diff) | |
download | puppet-nginx-4dc88085101cf28ed8afba7cfd7fe5461ea64595.tar.gz puppet-nginx-4dc88085101cf28ed8afba7cfd7fe5461ea64595.tar.bz2 |
Use nginx::config at nginx::cache
-rw-r--r-- | manifests/cache.pp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/manifests/cache.pp b/manifests/cache.pp index 0f1a402..1550170 100644 --- a/manifests/cache.pp +++ b/manifests/cache.pp @@ -8,13 +8,7 @@ class nginx::cache( mode => '0700', } - file { '/etc/nginx/conf.d/cache.conf' : - ensure => $ensure, - owner => 'root', - group => 'root', - mode => '0644', - content => "proxy_cache_path /var/cache/nginx/ levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g;\n", - require => File['/var/cache/nginx'], - notify => Service['nginx'], + nginx::config { 'cache': + value => "proxy_cache_path /var/cache/nginx/ levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g;\n", } } |