]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Introducing $apache_server_name
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 7 Feb 2010 17:24:42 +0000 (15:24 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 7 Feb 2010 17:24:42 +0000 (15:24 -0200)
manifests/init.pp
templates/apache2.conf.erb

index 8505d7ca6f6492281dc0ae86553012abf3dbeed0..f9c3a810dbf1893d1729f854df82fb3e8cdf266e 100644 (file)
@@ -92,6 +92,10 @@ class apache {
     '': { $apache_error_dest = "${apache_error_folder}/index.html" }
   }
 
+  case $apache_server_name {
+    '': { $apache_server_name = $fqdn }
+  }
+
   define site($ensure = present, $docroot = false, $redirect = false,
               $redirect_match = false, $protocol = 'http',
               $server_alias = false, $use = false, $ticket = false,
index 9ff6ea5c796fc68c0af832d5a4d4c0800255ebce..cc59c6d06f3634f1aa068946595ff782da99fab2 100644 (file)
@@ -35,7 +35,7 @@
 # such as the number of concurrent requests it can handle or where it
 # can find its configuration files.
 #
-ServerName <%= fqdn %>
+ServerName <%= apache_server_name %>
 
 #
 # ServerRoot: The top of the directory tree under which the server's