diff options
Diffstat (limited to 'manifests/websites.pp')
-rw-r--r-- | manifests/websites.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/websites.pp b/manifests/websites.pp index cf6f288..f219e20 100644 --- a/manifests/websites.pp +++ b/manifests/websites.pp @@ -5,6 +5,11 @@ class websites::setup { $apache_error_dest = "http://${domain}/missing.html" $drupal_folder = "${apache_www_folder}/drupal" + case $default_vhost = $apache_server_name ? { + '': { $hostname } + default: { $apache_server_name } + } + # Include apache include apache @@ -46,7 +51,7 @@ class websites::setup { } # Default vhost: can just be applied on the defining host - apache::site { "$apache_server_name": + apache::site { "$default_vhost": server_alias => "$domain", docroot => "${apache_www_folder}", } |