]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Adds allow_override param into apache::site
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Mar 2016 20:05:40 +0000 (17:05 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Mar 2016 20:05:40 +0000 (17:05 -0300)
manifests/site.pp
templates/site.erb

index 19f7783bff9699784fab8fd6c30b4a5df0b4839a..8bb878cc829569943d8e159891f2cbabe675145e 100644 (file)
@@ -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 ? {
index e2ebbf59ed9700aa592ce7a7c0932a831a960378..2ed510797b720ab235f12804cc9ce774434aa750 100644 (file)
 <% if @custom_directives != false -%>
    <%= @custom_directives %>
 <% end -%>
+<% if @allow_override != false %>
+   <Directory <%= @docroot %>>
+     AllowOverride <%= @allow_override %>
+   </Directory>
+<% end -%>
 </VirtualHost>
 # end vhost for <%= @title %>
 <% if @ssl == true %>
 <% if @custom_directives != false -%>
   <%= @custom_directives %>
 <% end -%>
+<% if @allow_override != false %>
+   <Directory <%= @docroot %>>
+     AllowOverride <%= @allow_override %>
+   </Directory>
+<% end -%>
 <% if @mpm == true %>
    <IfModule mpm_itk_module>
      AssignUserId <%= @user %> <%= @gid %>