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