From 4dc88085101cf28ed8afba7cfd7fe5461ea64595 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 29 Oct 2015 14:11:07 -0200 Subject: Use nginx::config at nginx::cache --- manifests/cache.pp | 10 ++-------- 1 file 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", } } -- cgit v1.2.3