exim helo-check: stop people claiming to be e.g. "mail.example.com"
[mirror/dsa-puppet.git] / modules / debian_org / templates / puppet.conf.erb
index cc5dc46..aa1cae1 100644 (file)
@@ -15,7 +15,7 @@ environment=production
 pluginsync=true
 <%- end -%>
 
-<% if scope.function_has_role(['puppetmaster']) %>
+<% if classes.include?('puppetmaster') -%>
 [master]
 environmentpath=/srv/puppet.debian.org/stages
 cadir  = /var/lib/puppet/ssl/ca
@@ -27,7 +27,7 @@ storeconfigs_backend = puppetdb
 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 = 10
+http_connect_timeout = 20
 http_read_timeout = 240
 <%- else -%>
 configtimeout = 240