Puppet Class: nova::db::postgresql
- Defined in:
- manifests/db/postgresql.pp
Overview
Class: nova::db::postgresql
Class that configures postgresql for nova Requires the Puppetlabs postgresql module.
Parameters:
- password
-
Password to use to connect to postgresql
- dbname
-
(optional) Name of the database to create for nova Defaults to ‘nova’
- user
-
(optional) Name of the user to connect to postgresql Defaults to ‘nova’
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'manifests/db/postgresql.pp', line 19
class nova::db::postgresql(
$password,
$dbname = 'nova',
$user = 'nova'
) {
require 'postgresql::python'
Postgresql::Db[$dbname] -> Anchor<| title == 'nova-start' |>
Postgresql::Db[$dbname] ~> Exec<| title == 'nova-db-sync' |>
Package['python-psycopg2'] -> Exec<| title == 'nova-db-sync' |>
postgresql::db { $dbname:
user => $user,
password => $password,
}
}
|