1 # == Class: nova::db::postgresql
3 # Class that configures postgresql for nova
4 # Requires the Puppetlabs postgresql module.
9 # Password to use to connect to postgresql
12 # (optional) Name of the database to create for nova
16 # (optional) Name of the user to connect to postgresql
19 class nova::db::postgresql(
25 require 'postgresql::python'
27 Postgresql::Db[$dbname] -> Anchor<| title == 'nova-start' |>
28 Postgresql::Db[$dbname] ~> Exec<| title == 'nova-db-sync' |>
29 Package['python-psycopg2'] -> Exec<| title == 'nova-db-sync' |>
31 postgresql::db { $dbname:
33 password => $password,