Don't set vsroom_webhosts by default

This commit is contained in:
Ossi Salmi 2011-11-28 00:58:51 +02:00 committed by Timo Mkinen
parent 8ce5c0b5b7
commit e665fe4d55

View file

@ -115,6 +115,7 @@ class vsroom {
source => "puppet:///modules/vsroom/vsroom-httpd.conf",
}
if $vsroom_webhosts {
define configwebhost() {
file { "/srv/www/https/${name}/vsroom":
ensure => link,
@ -122,11 +123,7 @@ class vsroom {
require => File["/srv/www/https/${name}"],
}
}
if !$vsroom_webhosts {
$vsroom_webhosts = [ "${homename}" ]
configwebhost { $vsroom_webhosts: }
}
configwebhost { $vsroom_webhosts: }
}