From d36e328d3b80fb5c4615fb740e8b7a3cecf09dba Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 25 Mar 2016 17:05:40 -0300 Subject: Adds allow_override param into apache::site --- manifests/site.pp | 3 ++- templates/site.erb | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/manifests/site.pp b/manifests/site.pp index 19f7783..8bb878c 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -30,7 +30,8 @@ define apache::site( $canonical = false, $canonical_exceptions = '', $hidden_service = false, - $custom_directives = false + $custom_directives = false, + $allow_override = false ) { $vhost = $filename ? { diff --git a/templates/site.erb b/templates/site.erb index e2ebbf5..2ed5107 100644 --- a/templates/site.erb +++ b/templates/site.erb @@ -33,6 +33,11 @@ <% if @custom_directives != false -%> <%= @custom_directives %> <% end -%> +<% if @allow_override != false %> + > + AllowOverride <%= @allow_override %> + +<% end -%> # end vhost for <%= @title %> <% if @ssl == true %> @@ -55,6 +60,11 @@ <% if @custom_directives != false -%> <%= @custom_directives %> <% end -%> +<% if @allow_override != false %> + > + AllowOverride <%= @allow_override %> + +<% end -%> <% if @mpm == true %> AssignUserId <%= @user %> <%= @gid %> -- cgit v1.2.3