1 # == Class: barometer::db::postgresql
3 # Class that configures postgresql for barometer
4 # Requires the Puppetlabs postgresql module.
9 # (Required) Password to connect to the database.
12 # (Optional) Name of the database.
13 # Defaults to 'barometer'.
16 # (Optional) User to connect to the database.
17 # Defaults to 'barometer'.
20 # (Optional) The charset to use for the database.
24 # (Optional) Privileges given to the database user.
35 class barometer::db::postgresql(
37 $dbname = 'barometer',
43 Class['barometer::db::postgresql'] -> Service<| title == 'barometer' |>
45 ::openstacklib::db::postgresql { 'barometer':
46 password_hash => postgresql_password($user, $password),
49 encoding => $encoding,
50 privileges => $privileges,
53 ::Openstacklib::Db::Postgresql['barometer'] ~> Exec<| title == 'barometer-manage db_sync' |>