summaryrefslogtreecommitdiff
path: root/manifests/lighty.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/lighty.pp')
-rw-r--r--manifests/lighty.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/lighty.pp b/manifests/lighty.pp
index 3ac2bf4..9a6a26b 100644
--- a/manifests/lighty.pp
+++ b/manifests/lighty.pp
@@ -2,9 +2,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',
+ 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'];
}