]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Adding 'aliases' parameter
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 21 Mar 2010 13:58:23 +0000 (10:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 21 Mar 2010 13:58:23 +0000 (10:58 -0300)
manifests/init.pp
templates/site.erb

index f21a02d77d46f976b2b911ccb130fa62eb11ff33..ae7acc05a261a0cfc2c0ff4aeacb1d781b49c10d 100644 (file)
@@ -95,7 +95,7 @@ class apache {
   }
 
   define site($ensure = present, $docroot = false, $redirect = false,
-              $redirect_match = false, $protocol = 'http',
+              $redirect_match = false, $protocol = 'http', $aliases = false,
               $server_alias = false, $use = false, $ticket = false,
               $source = false, $template = 'apache/site.erb', $filename = '',
               $manage_docroot = true, $owner = "root", $group = "root") {
index 18fce97df75b5bf014ee98a2bfcafe6d38056fca..4f5f3a1e393bbd171d61d65b5befd123d4ae84fd 100644 (file)
@@ -5,6 +5,9 @@
    DocumentRoot <%= docroot %>
 <% if redirect_match != false %>   RedirectMatch ^/$ <%= protocol %>://<%= title %>.<%= hosting_domain %>/<%= redirect_match %><% end %>
 <% if redirect != false %>   Redirect <%= redirect %><% end %>
+<% if aliases != false %><% aliases.each do |map| -%>
+   Alias <%= map %>
+<% end -%><% end -%>  
 <% if use != false %><% use.each do |instance| -%>
    Use <%= instance %>
 <% end -%><% end -%>