Add configurable Timeout settings on git vhost

Under certain situations it can be good to force
a higher timeout for git vhost. Add the possibility
to send that parameter on the manifest, and ignore
if no timeout is set.

Change-Id: Ib74b5b5182e583dd7fa586f244174e41681636c8
This commit is contained in:
Yolanda Robla 2015-03-03 17:30:28 +01:00
parent 862c4fb471
commit adbe6aef57
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class cgit(
$ssl_key_file_contents = '', # If left empty puppet will not create file.
$ssl_chain_file_contents = '', # If left empty puppet will not create file.
$behind_proxy = false,
$cgit_timeout = false,
) {
if $behind_proxy == true {

View File

@ -24,6 +24,10 @@
ErrorLog /var/log/httpd/git-error.log
<% if scope.lookupvar("cgit::cgit_timeout").is_a? Integer %>
Timeout <%= scope.lookupvar("cgit::cgit_timeout") %>
<% end %>
LogLevel warn
CustomLog /var/log/httpd/git-access.log combined