From: Silvio Rhatto Date: Thu, 29 Oct 2015 16:11:07 +0000 (-0200) Subject: Use nginx::config at nginx::cache X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4dc88085101cf28ed8afba7cfd7fe5461ea64595;p=puppet-nginx.git Use nginx::config at nginx::cache --- 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", } }