Do not have production and staging section in puppet.conf on all clients
[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 pluginsync=true
13 modulepath=/etc/puppet/modules:/etc/puppet/3rdparty/modules:/usr/share/puppet/modules
14 # This is the default environment for all clients
15 environment=production
16
17 <%- if scope.lookupvar('::hostname') == 'handel' -%>
18 [master]
19 environments = production,staging
20 reports = store
21 config_version = cat /etc/puppet/.config-version
22 storeconfigs = true
23 thin_storeconfigs = true
24 dbadapter=mysql
25 dbuser=puppet
26 dbpassword=<%= scope.lookupvar('dbpassword') %>
27 dbserver=localhost
28
29 [production]
30 manifestdir=/srv/puppet.debian.org/stages/production/manifests
31 fileserverconfig=/srv/puppet.debian.org/stages/production/fileserver.conf
32 modulepath=/srv/puppet.debian.org/stages/production/modules:/srv/puppet.debian.org/stages/production/3rdparty/modules
33
34 [staging]
35 manifestdir=/srv/puppet.debian.org/stages/staging/manifests
36 fileserverconfig=/srv/puppet.debian.org/stages/staging/fileserver.conf
37 modulepath=/srv/puppet.debian.org/stages/staging/modules:/srv/puppet.debian.org/stages/staging/3rdparty/modules
38 <%- end -%>
39
40 [agent]
41 environments = development,testing,production,staging
42 report = true
43 configtimeout = 240