]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/templates/vhost/_itk.erb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / templates / vhost / _itk.erb
diff --git a/3rdparty/modules/apache/templates/vhost/_itk.erb b/3rdparty/modules/apache/templates/vhost/_itk.erb
new file mode 100644 (file)
index 0000000..803a73d
--- /dev/null
@@ -0,0 +1,29 @@
+<% if @itk and ! @itk.empty? -%>
+
+  ## ITK statement
+  <IfModule mpm_itk_module>
+     <%- if @itk["user"] and @itk["group"] -%>
+     AssignUserId <%= @itk["user"] %> <%= @itk["group"] %>
+     <%- end -%>
+     <%- if @itk["assignuseridexpr"] -%>
+     AssignUserIdExpr <%= @itk["assignuseridexpr"] %>
+     <%- end -%>
+     <%- if @itk["assigngroupidexpr"] -%>
+     AssignGroupIdExpr <%= @itk["assigngroupidexpr"] %>
+     <%- end -%>
+     <%- if @itk["maxclientvhost"] -%>
+     MaxClientsVHost <%= @itk["maxclientvhost"] %>
+     <%- end -%>
+     <%- if @itk["nice"] -%>
+     NiceValue <%= @itk["nice"] %>
+     <%- end -%>
+     <%- if @kernelversion >= '3.5.0' -%>
+       <%- if @itk["limituidrange"] -%>
+     LimitUIDRange <%= @itk["limituidrange"] %>
+       <%- end -%>
+       <%- if @itk["limitgidrange"] -%>
+     LimitGIDRange <%= @itk["limitgidrange"] %>
+       <%- end -%>
+     <%- end -%>
+  </IfModule>
+<% end -%>