remove debian.fi
[mirror/dsa-puppet.git] / modules / debian_org / templates / puppet.conf.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 [main]
7 logdir=/var/log/puppet
8 vardir=/var/lib/puppet
9 ssldir=/var/lib/puppet/ssl
10 rundir=/var/run/puppet
11 factpath=$vardir/lib/facter
12 # This is the default environment for all clients
13 environment=production
14 <%- if has_variable?("puppetversion") and (scope.call_function('versioncmp', [@puppetversion.to_s, '4.4.0']) < 0) -%>
15 pluginsync=true
16 <%- end -%>
17
18 <% if scope.function_has_role(['puppetmaster']) %>
19 [master]
20 environmentpath=/srv/puppet.debian.org/stages
21 cadir  = /var/lib/puppet/ssl/ca
22 storeconfigs = true
23 storeconfigs_backend = puppetdb
24 <%- end -%>
25
26 [agent]
27 environments = development,testing,production,staging
28 report = true
29 <%- if has_variable?("puppetversion") and (scope.call_function('versioncmp', [@puppetversion.to_s, '4.1.0']) >= 0) -%>
30 http_connect_timeout = 20
31 http_read_timeout = 240
32 <%- else -%>
33 configtimeout = 240
34 <%- end -%>
35 <%- if has_variable?("puppetversion") and @puppetversion.to_s == "3.7.2" -%>
36 stringify_facts = false
37 <%- end -%>