fuel-library/deployment/puppet/glance/manifests/db/postgresql.pp
Matthew Mosesohn 1f1617b8cf Adapt puppetlabs-postgresql to Fuel
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
2014-10-27 14:35:13 +00:00

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,
}
}