summaryrefslogtreecommitdiff
path: root/manifests/lighty.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/lighty.pp')
-rw-r--r--manifests/lighty.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/lighty.pp b/manifests/lighty.pp
index 4e34f5e..9a6a26b 100644
--- a/manifests/lighty.pp
+++ b/manifests/lighty.pp
@@ -1,11 +1,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 => "/etc/lighttpd/conf-available/20-reprepro.conf",
+ 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'];
+ notify => Service['lighttpd'];
}
}