summaryrefslogtreecommitdiff
path: root/manifests/cache.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-26 16:43:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-26 16:43:56 -0200
commitdb312d4add369ad6b0f58e9e9e339ebf80e32b9d (patch)
treed999d6af5e7d2647c50a85e2c44692e1a186cf25 /manifests/cache.pp
parenta277d6dcee113e3ff67e8db3d1cc90d3db786532 (diff)
downloadpuppet-nginx-db312d4add369ad6b0f58e9e9e339ebf80e32b9d.tar.gz
puppet-nginx-db312d4add369ad6b0f58e9e9e339ebf80e32b9d.tar.bz2
Adds nginx::config
Diffstat (limited to 'manifests/cache.pp')
-rw-r--r--manifests/cache.pp15
1 files changed, 9 insertions, 6 deletions
diff --git a/manifests/cache.pp b/manifests/cache.pp
index bf0b145..640ae0c 100644
--- a/manifests/cache.pp
+++ b/manifests/cache.pp
@@ -1,13 +1,16 @@
-class nginx::cache {
+class nginx::cache(
+ $ensure => 'present',
+) {
file { '/var/cache/nginx':
- ensure => directory,
- owner => 'www-data',
- group => 'www-data',
- mode => '0700',
+ ensure => directory,
+ owner => 'www-data',
+ group => 'www-data',
+ mode => '0700',
+ require => Service['nginx'],
}
file { '/etc/nginx/conf.d/cache.conf' :
- ensure => present,
+ ensure => $ensure,
owner => 'root',
group => 'root',
mode => '0644',