blob: efe8a6fa6fef948e8f6c205110f063888e85ff33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
class puppet::stored_config {
# TODO uncomment when the following problem have been fixed
# - how to bootstrap the installation of the infrastructure ( since we use
# stored_config for postgresql::remote_db_and_user, we need to have a sqlite3
# database first and then declare the database, and then switch to it )
# - how do we decide when we get sqlite3 ( for small test servers ) and
# when do we decide to get the real pgsql server ( for production setup )
#
# if ($::environment == 'production') {
# # FIXME not really elegant, but we do not have much choice
# # this make servers not bootstrapable for now
# $pgsql_password = extlookup('puppet_pgsql','x')
#
# postgresql::remote_db_and_user { 'bugs':
# description => 'Puppet database',
# password => $pgsql_password,
# }
#
# $database = 'pg'
# } else {
$database = 'sqlite3'
# }
#
$db_config = template('puppet/db_config.erb')
}
|