From 87df824ee0911a2749b68a194f725f0629b856d8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 7 Jan 2010 23:24:21 -0200 Subject: Minor fix --- manifests/init.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index a3b018b..8505d7c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -92,11 +92,6 @@ class apache { '': { $apache_error_dest = "${apache_error_folder}/index.html" } } - $hosting_domain = $base_domain ? { - '' => $domain, - default => $base_domain, - } - define site($ensure = present, $docroot = false, $redirect = false, $redirect_match = false, $protocol = 'http', $server_alias = false, $use = false, $ticket = false, @@ -108,6 +103,11 @@ class apache { default => "$filename", } + $hosting_domain = $base_domain ? { + '' => $domain, + default => $base_domain, + } + case $source { true: { file { "${apache2_sites}-available/$vhost": -- cgit v1.2.3