1f1617b8cf
Fuel uses a custom package name "postgresql" instead of "postgresql94", so this value needs to be passed, along with bindir value. Also adapted all manifest references to postgresql::db to postgresql::server::db. Change-Id: I1ec329ee31ecc6edfd357329bfc84df95ecf7ddc Closes-Bug: #1386118
22 lines
469 B
Puppet
22 lines
469 B
Puppet
#
|
|
# Class that configures postgresql for glance
|
|
#
|
|
# Requires the Puppetlabs postgresql module.
|
|
class glance::db::postgresql(
|
|
$password,
|
|
$dbname = 'glance',
|
|
$user = 'glance'
|
|
) {
|
|
|
|
require postgresql::python
|
|
|
|
Postgresql::Server::Db[$dbname] ~> Exec<| title == 'glance-manage db_sync' |>
|
|
Package['python-psycopg2'] -> Exec<| title == 'glance-manage db_sync' |>
|
|
|
|
postgresql::server::db { $dbname:
|
|
user => $user,
|
|
password => $password,
|
|
}
|
|
|
|
}
|