diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-07 23:09:27 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-07 23:09:27 -0200 |
commit | 262fa2c3910a476bd030d6b77e9395fa506c054a (patch) | |
tree | 19867a16a79153285e02b7e47c9612afd13679ae | |
parent | a9f63debd2e2486c2c425523a6febfd0ecf70b88 (diff) | |
download | puppet-apache-262fa2c3910a476bd030d6b77e9395fa506c054a.tar.gz puppet-apache-262fa2c3910a476bd030d6b77e9395fa506c054a.tar.bz2 |
Using $base_domain instead of $hosting_domain
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 3 insertions, 2 deletions
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, |