summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base.pp7
1 files changed, 6 insertions, 1 deletions
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') {