]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
add lighttpd support
authorAntoine Beaupre <anarcat@koumbit.org>
Wed, 24 Jun 2009 19:13:16 +0000 (15:13 -0400)
committerAntoine Beaupre <anarcat@koumbit.org>
Wed, 24 Jun 2009 19:13:16 +0000 (15:13 -0400)
manifests/lighty.pp [new file with mode: 0644]

diff --git a/manifests/lighty.pp b/manifests/lighty.pp
new file mode 100644 (file)
index 0000000..4e34f5e
--- /dev/null
@@ -0,0 +1,11 @@
+class reprepro::lighty inherits lighttpd {
+  include reprepro
+  file { "/etc/lighttpd/conf-available/20-reprepro.conf":
+      ensure => present,
+      content => "alias.url += ( \"/debian/\" => \"$reprepro::basedir/\" )\n";
+    "/etc/lighttpd/conf-enabled/20-reprepro.conf":
+      ensure => "/etc/lighttpd/conf-available/20-reprepro.conf",
+      require => File['/etc/lighttpd/conf-available/20-reprepro.conf'],
+      notify => Service['lighttpd'];
+  }
+}