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