2013-04-23 12:09:49 -04:00
|
|
|
#
|
|
|
|
# Class that configures postgresql for glance
|
|
|
|
#
|
|
|
|
# Requires the Puppetlabs postgresql module.
|
|
|
|
class glance::db::postgresql(
|
|
|
|
$password,
|
|
|
|
$dbname = 'glance',
|
|
|
|
$user = 'glance'
|
|
|
|
) {
|
|
|
|
|
2013-07-01 17:24:57 -04:00
|
|
|
require postgresql::python
|
2013-04-23 12:09:49 -04:00
|
|
|
|
|
|
|
Postgresql::Db[$dbname] ~> Exec<| title == 'glance-manage db_sync' |>
|
|
|
|
Package['python-psycopg2'] -> Exec<| title == 'glance-manage db_sync' |>
|
|
|
|
|
2013-07-01 17:24:57 -04:00
|
|
|
postgresql::db { $dbname:
|
|
|
|
user => $user,
|
|
|
|
password => $password,
|
2013-04-23 12:09:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|