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,18 +115,15 @@ class vsroom {
source => "puppet:///modules/vsroom/vsroom-httpd.conf",
}
define configwebhost() {
file { "/srv/www/https/${name}/vsroom":
ensure => link,
target => "/var/www/vsroom",
require => File["/srv/www/https/${name}"],
if $vsroom_webhosts {
define configwebhost() {
file { "/srv/www/https/${name}/vsroom":
ensure => link,
target => "/var/www/vsroom",
require => File["/srv/www/https/${name}"],
}
}
configwebhost { $vsroom_webhosts: }
}
if !$vsroom_webhosts {
$vsroom_webhosts = [ "${homename}" ]
}
configwebhost { $vsroom_webhosts: }
}