X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian_org%2Ftemplates%2Fpuppet.conf.erb;h=aa1cae1d24bde20304fd789cb6bc3741153a5f42;hb=519904b541156a155abaaa6db169ed9fab401ed3;hp=319c47db78c7b0996c5256568c79e0afae0a2611;hpb=374f004e5990003a1d1caa271ddf2bd6c082e4a0;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian_org/templates/puppet.conf.erb b/modules/debian_org/templates/puppet.conf.erb index 319c47db7..aa1cae1d2 100644 --- a/modules/debian_org/templates/puppet.conf.erb +++ b/modules/debian_org/templates/puppet.conf.erb @@ -9,12 +9,13 @@ vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter -pluginsync=true # This is the default environment for all clients environment=production +<%- if has_variable?("puppetversion") and (scope.call_function('versioncmp', [@puppetversion.to_s, '4.4.0']) < 0) -%> +pluginsync=true +<%- end -%> -<%- if scope.lookupvar('::hostname') == 'handel' -%> - +<% if classes.include?('puppetmaster') -%> [master] environmentpath=/srv/puppet.debian.org/stages cadir = /var/lib/puppet/ssl/ca @@ -25,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 -%>