From: mh Date: Sat, 16 Oct 2010 19:52:24 +0000 (+0200) Subject: create caching dir for centos X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9c1e8330bced02c09eae75127b4689902bd9d0c6;p=puppet-lighttpd.git create caching dir for centos --- 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 } }