]> gitweb.fluxo.info Git - puppet-nginx.git/commitdiff
Use nginx::config at nginx::cache
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Oct 2015 16:11:07 +0000 (14:11 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Oct 2015 16:11:07 +0000 (14:11 -0200)
manifests/cache.pp

index 0f1a4023a1ea17cd5b558a266bf124f622191df0..155017081b4d12c2a08f46ee31a264edc0dbd310 100644 (file)
@@ -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",
   }
 }