diff options
-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", } } |