summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-16 21:52:24 +0200
committermh <mh@immerda.ch>2010-10-16 21:52:24 +0200
commit9c1e8330bced02c09eae75127b4689902bd9d0c6 (patch)
tree92d67ec8bd9e4cda00279d0218387a39ea860170 /manifests
parent2408b555be4021b02a7a853347a3224db8b09ac0 (diff)
downloadpuppet-lighttpd-9c1e8330bced02c09eae75127b4689902bd9d0c6.tar.gz
puppet-lighttpd-9c1e8330bced02c09eae75127b4689902bd9d0c6.tar.bz2
create caching dir for centos
Diffstat (limited to 'manifests')
-rw-r--r--manifests/centos.pp11
-rw-r--r--manifests/init.pp1
2 files changed, 12 insertions, 0 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp
new file mode 100644
index 0000000..faa16e9
--- /dev/null
+++ b/manifests/centos.pp
@@ -0,0 +1,11 @@
+class lighttpd::centos inherits lighttpd::base {
+ file{
+ '/var/cache/lighttpd':
+ ensure => directory,
+ require => Package['lighttpd'];
+ '/var/cache/lighttpd/compress':
+ ensure => directory,
+ require => Package['lighttpd'],
+ owner => lighttpd, group => lighttpd, mode => 0640;
+ }
+}
diff --git a/manifests/init.pp b/manifests/init.pp
index 9772817..9ec22fb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,6 +5,7 @@
class lighttpd {
case $operatingsystem {
debian,ubuntu: { include lighttpd::debian }
+ centos,redhat,fedora: { include lighttpd::centos }
default: { include lighttpd::base }
}