summaryrefslogtreecommitdiff
path: root/manifests/lighty.pp
blob: 9a6a26b7a99b32a72722a8255dac627105bfa8d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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  => link,
      target  => '/etc/lighttpd/conf-available/20-reprepro.conf',
      require => File['/etc/lighttpd/conf-available/20-reprepro.conf'],
      notify  => Service['lighttpd'];
  }
}