From 68890c0f2bf8387b1d2fe9d0eef46f39f593d404 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 26 Oct 2015 16:02:59 -0200 Subject: Caching support --- manifests/base.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'manifests/base.pp') diff --git a/manifests/base.pp b/manifests/base.pp index 3caaeaa..a118980 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -10,11 +10,16 @@ class nginx::base { group => "root", } + # Caching + file { [ '/var/cache', '/var/cache/nginx' ]: + ensure => directory, + } + service { "nginx": enable => true, ensure => running, hasrestart => true, - require => Package["nginx"], + require => [ Package["nginx"], File['/var/cache/nginx'] ], } define site($ensure = present, $source = 'file') { -- cgit v1.2.3