]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
puppet.conf reorg
authorStephen Gran <steve@lobefin.net>
Sun, 24 Jun 2012 11:03:22 +0000 (12:03 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 24 Jun 2012 11:03:44 +0000 (12:03 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/debian-org/files/puppet.conf [deleted file]
modules/debian-org/manifests/init.pp
modules/debian-org/templates/puppet.conf.erb [new file with mode: 0644]

diff --git a/modules/debian-org/files/puppet.conf b/modules/debian-org/files/puppet.conf
deleted file mode 100644 (file)
index bc4b717..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-
-[main]
-logdir=/var/log/puppet
-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
-
-[master]
-environments = development,testing,production,staging
-reports = store, http
-reporturl = http://puppet-dashboard.debian.org:3000/reports/upload
-config_version = cat /etc/puppet/.config-version
-
-[agent]
-environments = development,testing,production,staging
-report = true
-
-[staging]
-manifestdir=/srv/puppet.debian.org/stages/staging/manifests
-fileserverconfig=/srv/puppet.debian.org/stages/staging/fileserver.conf
-modulepath=/srv/puppet.debian.org/stages/staging/modules
index 3d2fd217cbeb9b7c06953e482ab9439299c7a5c9..5258dfbe6b54aa6e365806d432a77886d6405a77 100644 (file)
@@ -69,7 +69,6 @@ class debian-org {
                }
        }
 
-
        package { 'molly-guard':
                ensure => installed,
        }
@@ -156,7 +155,7 @@ class debian-org {
                notify => Exec['dpkg-reconfigure tzdata -pcritical -fnoninteractive'],
        }
        file { '/etc/puppet/puppet.conf':
-               source => 'puppet:///modules/debian-org/puppet.conf',
+               content => template('debian-org/puppet.conf.erb'),
        }
        file { '/etc/default/puppet':
                source => 'puppet:///modules/debian-org/puppet.default',
diff --git a/modules/debian-org/templates/puppet.conf.erb b/modules/debian-org/templates/puppet.conf.erb
new file mode 100644 (file)
index 0000000..67a4d49
--- /dev/null
@@ -0,0 +1,36 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+[main]
+logdir=/var/log/puppet
+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 scope.lookupvar('::hostname') == 'handel' -%>
+[master]
+environments = development,testing,production,staging
+reports = store, http
+reporturl = http://puppet-dashboard.debian.org:3000/reports/upload
+config_version = cat /etc/puppet/.config-version
+storeconfigs = true
+dbadapter=mysql
+dbuser=puppet
+dbpassword=Oof0shee6Athoesh
+dbserver=localhost
+<%- end -%>
+
+[agent]
+environments = development,testing,production,staging
+report = true
+
+[staging]
+manifestdir=/srv/puppet.debian.org/stages/staging/manifests
+fileserverconfig=/srv/puppet.debian.org/stages/staging/fileserver.conf
+modulepath=/srv/puppet.debian.org/stages/staging/modules