From 9878f1e0b68f5c68cdb8deeb795618ccbcf4c25e Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 13 Feb 2013 11:29:47 -0500 Subject: lint current state of the module --- manifests/lighty.pp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'manifests/lighty.pp') 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']; } } -- cgit v1.2.3