Skip to content

Commit

Permalink
Merge pull request puppetlabs#2014 from jplindquist/proxyiobuffer
Browse files Browse the repository at this point in the history
Add ProxyIOBufferSize option
  • Loading branch information
sheenaajay authored Apr 9, 2020
2 parents c6705c0 + a476c2e commit c782a71
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
30 changes: 17 additions & 13 deletions manifests/mod/proxy.pp
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# @summary
# Installs and configures `mod_proxy`.
#
#
# @param proxy_requests
# Enables forward (standard) proxy requests.
#
#
# @param allow_from
# List of IPs allowed to access proxy.
#
#
# @param apache_version
# Used to verify that the Apache version you have requested is compatible with the module.
#
#
# @param package_name
# Name of the proxy package to install.
#
#
# @param proxy_via
# Set local IP address for outgoing proxy connections.
#
#
# @param proxy_timeout
# Network timeout for proxied requests.
#
#
# @param proxy_iobuffersize
# Set the size of internal data throughput buffer
#
# @see https://httpd.apache.org/docs/current/mod/mod_proxy.html for additional documentation.
#
class apache::mod::proxy (
$proxy_requests = 'Off',
$allow_from = undef,
$apache_version = undef,
$package_name = undef,
$proxy_via = 'On',
$proxy_timeout = undef,
$proxy_requests = 'Off',
$allow_from = undef,
$apache_version = undef,
$package_name = undef,
$proxy_via = 'On',
$proxy_timeout = undef,
$proxy_iobuffersize = undef,
) {
include ::apache
$_proxy_timeout = $apache::timeout
Expand Down
3 changes: 3 additions & 0 deletions templates/mod/proxy.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
<%- if @proxy_timeout -%>
ProxyTimeout <%= @proxy_timeout %>
<%- end -%>
<%- if @proxyiobuffersize -%>
ProxyIOBufferSize <%= @proxy_iobuffersize %>
<%- end -%>
</IfModule>

0 comments on commit c782a71

Please sign in to comment.