
* Fixes following warnings: * double quoted string containing no variables * string containing only a variable * variable not enclosed in {} * indentation of => is not properly aligned * Fix following error: * two-space soft tabs not used * Remove some comments from the code, they added no value. Change-Id: I3165e65e95c3565951077786d2edf77245460c35
22 lines
456 B
Puppet
22 lines
456 B
Puppet
#
|
|
# Class that configures postgresql for cinder
|
|
#
|
|
# Requires the Puppetlabs postgresql module.
|
|
class cinder::db::postgresql(
|
|
$password,
|
|
$dbname = 'cinder',
|
|
$user = 'cinder'
|
|
) {
|
|
|
|
require postgresql::python
|
|
|
|
Postgresql::Db[$dbname] ~> Exec<| title == 'cinder-manage db_sync' |>
|
|
Package['python-psycopg2'] -> Exec<| title == 'cinder-manage db_sync' |>
|
|
|
|
postgresql::db { $dbname:
|
|
user => $user,
|
|
password => $password,
|
|
}
|
|
|
|
}
|