Don't set vsroom_webhosts by default
This commit is contained in:
parent
8ce5c0b5b7
commit
e665fe4d55
1 changed files with 8 additions and 11 deletions
|
@ -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: }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue