X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Ftemplates%2Fpuppet.conf.erb;h=a26786771d8d003346dac45bf195f321f5d2f028;hb=f730778ea3422c96c978e2bef1b3fda703094707;hp=83d06dec26fadfdda67b30bfd08c8b7af3a62a44;hpb=40dd359964753a159078fbfc2c44136f35da3857;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian_org/templates/puppet.conf.erb b/modules/debian_org/templates/puppet.conf.erb index 83d06dec2..a26786771 100644 --- a/modules/debian_org/templates/puppet.conf.erb +++ b/modules/debian_org/templates/puppet.conf.erb @@ -26,7 +26,12 @@ storeconfigs_backend = puppetdb [agent] environments = development,testing,production,staging report = true +<%- if has_variable?("puppetversion") and (scope.call_function('versioncmp', [@puppetversion.to_s, '4.1.0']) >= 0) -%> +http_connect_timeout = 20 +http_read_timeout = 240 +<%- else -%> configtimeout = 240 +<%- end -%> <%- if has_variable?("puppetversion") and @puppetversion.to_s == "3.7.2" -%> stringify_facts = false <%- end -%>