From: Silvio Rhatto Date: Fri, 8 Jan 2010 01:09:27 +0000 (-0200) Subject: Using $base_domain instead of $hosting_domain X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=262fa2c3910a476bd030d6b77e9395fa506c054a;p=puppet-apache.git Using $base_domain instead of $hosting_domain --- diff --git a/manifests/init.pp b/manifests/init.pp index 9235a43..a3b018b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -92,8 +92,9 @@ class apache { '': { $apache_error_dest = "${apache_error_folder}/index.html" } } - case $hosting_domain { - '': { $hosting_domain = $domain } + $hosting_domain = $base_domain ? { + '' => $domain, + default => $base_domain, } define site($ensure = present, $docroot = false, $redirect = false,