From 9c1e8330bced02c09eae75127b4689902bd9d0c6 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 16 Oct 2010 21:52:24 +0200 Subject: create caching dir for centos --- manifests/centos.pp | 11 +++++++++++ manifests/init.pp | 1 + 2 files changed, 12 insertions(+) create mode 100644 manifests/centos.pp 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 } } -- cgit v1.2.3