aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-07 19:15:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-02-07 19:15:22 -0200
commitcc198fe5a065adb598259d7e794a8dedd7a26b9b (patch)
tree80b06d2aa7ab8435deced18dc4f9aa442323f12d
parenta47ddcd83727f54119db804f2737c164fc56590f (diff)
downloadpuppet-nodo-cc198fe5a065adb598259d7e794a8dedd7a26b9b.tar.gz
puppet-nodo-cc198fe5a065adb598259d7e794a8dedd7a26b9b.tar.bz2
Fix at $apache_server_name usage
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/websites.pp7
2 files changed, 6 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0dc8d46..7229f15 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -33,7 +33,6 @@ class nodo {
$ntp_timezone = "Brazil/East"
$ntp_pool = "south-america.pool.ntp.org"
$ntp_servers = [ 'a.ntp.br', 'b.ntp.br', 'c.ntp.br' ]
- info("\$ntp_timezone: $ntp_timezone")
# Monkeysphere
#
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}",
}