summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp2
-rw-r--r--templates/site.erb3
2 files changed, 4 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f21a02d..ae7acc0 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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") {
diff --git a/templates/site.erb b/templates/site.erb
index 18fce97..4f5f3a1 100644
--- a/templates/site.erb
+++ b/templates/site.erb
@@ -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 -%>