]> gitweb.fluxo.info Git - puppet-lighttpd.git/commitdiff
create caching dir for centos
authormh <mh@immerda.ch>
Sat, 16 Oct 2010 19:52:24 +0000 (21:52 +0200)
committermh <mh@immerda.ch>
Sat, 16 Oct 2010 19:52:24 +0000 (21:52 +0200)
manifests/centos.pp [new file with mode: 0644]
manifests/init.pp

diff --git a/manifests/centos.pp b/manifests/centos.pp
new file mode 100644 (file)
index 0000000..faa16e9
--- /dev/null
@@ -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;
+  }
+}
index 9772817aca6cb595834249560039a636ca380987..9ec22fbf45989e15a94495653d081f66ec5c79df 100644 (file)
@@ -5,6 +5,7 @@
 class lighttpd {
   case $operatingsystem {
     debian,ubuntu: { include lighttpd::debian }
+    centos,redhat,fedora: { include lighttpd::centos }
     default: { include lighttpd::base }
   }