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",
|
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: }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue