try thin_storeconfigs
authorStephen Gran <steve@lobefin.net>
Sun, 29 Jul 2012 09:47:22 +0000 (10:47 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 29 Jul 2012 09:47:22 +0000 (10:47 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
.gitignore
modules/debian-org/manifests/init.pp
modules/debian-org/templates/puppet.conf.erb

index ca0749d..7d2e5d6 100644 (file)
@@ -6,5 +6,6 @@ modules/exim/files/certs/
 modules/ssl/files/
 modules/dacs/files/private
 modules/hiera-puppet
+modules/puppetmaster/manifests/db.pp
 *.swp
 *~
index 5258dfb..a12ce2d 100644 (file)
@@ -154,6 +154,10 @@ class debian-org {
                source => 'puppet:///modules/debian-org/timezone',
                notify => Exec['dpkg-reconfigure tzdata -pcritical -fnoninteractive'],
        }
+       if $::hostname == handel {
+               include puppetmaster::db
+               $dbpassword = $puppetmaster::db::password
+       }
        file { '/etc/puppet/puppet.conf':
                content => template('debian-org/puppet.conf.erb'),
        }
index db558f0..f4d97ac 100644 (file)
@@ -19,6 +19,11 @@ environments = development,testing,production,staging
 reports = store, http
 reporturl = http://puppet-dashboard.debian.org:3000/reports/upload
 config_version = cat /etc/puppet/.config-version
+thin_storeconfigs = true
+dbadapter=mysql
+dbuser=puppet
+dbpassword=<% scope.lookupvar('dbpassword') %>
+dbserver=localhost
 <%- end -%>
 
 [agent]