]> gitweb.fluxo.info Git - puppet-lighttpd.git/commitdiff
added lighttpd module
authormh <mh@immerda.ch>
Thu, 8 Jan 2009 22:58:28 +0000 (22:58 +0000)
committermh <mh@immerda.ch>
Thu, 8 Jan 2009 22:58:28 +0000 (22:58 +0000)
manifests/init.pp [new file with mode: 0644]

diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644 (file)
index 0000000..9874f99
--- /dev/null
@@ -0,0 +1,24 @@
+# manifests/init.pp - manage lighttpd stuff
+# Copyright (C) 2007 admin@immerda.ch
+# GPLv3
+
+
+class lighttpd {
+    case $operatingsystem {
+        default: { include lighttpd::base }
+    }
+}
+
+class lighttpd::base {
+    package{'lighttpd':
+        ensure => installed,
+    }
+
+    service{lighttpd:
+        ensure => running,
+        enable => true,
+        #hasstatus => true, #fixme!
+        require => Package[lighttpd],
+    }
+
+}