summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-26 16:02:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-26 16:02:59 -0200
commit68890c0f2bf8387b1d2fe9d0eef46f39f593d404 (patch)
treee469261f27cb6ddf64fabac667e0162d3ca8d625 /manifests
parent4f7016c074f6e1d5b554d541ff5d9b1f77d9ee31 (diff)
downloadpuppet-nginx-68890c0f2bf8387b1d2fe9d0eef46f39f593d404.tar.gz
puppet-nginx-68890c0f2bf8387b1d2fe9d0eef46f39f593d404.tar.bz2
Caching support
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') {