Files
puppet-nova/manifests/db/postgresql.pp
Michael Chapman 6a358c0e9d Make parameter doc RDoc compatible
This patch fixes all remaining parameter documentation
in the nova module to be compatible with puppet-doc
and documents all parameters in a standard way.

Change-Id: I451078d46cb2498dd8e3c23bd8cbcc81b8845fcd
2013-12-16 16:07:10 +11:00

37 lines
789 B
Puppet

# == 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'
#
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,
}
}