
The current default db username for keystone is keystone_admin. This is inconsistent with the default db username for every other service which use the same name as the name of the service. The documented installation instruction for keystone also use keystone as the database user. This commit updates the default to use keystone instead of keyston_admin. Change-Id: I1cfaf3fbbc691ff9dbef415b69492f9f965dc113
48 lines
1.0 KiB
Puppet
48 lines
1.0 KiB
Puppet
#
|
|
# implements postgresql backend for keystone
|
|
#
|
|
# This class can be used to create tables, users and grant
|
|
# privelege for a postgresql keystone database.
|
|
#
|
|
# Requires Puppetlabs Postgresql module.
|
|
#
|
|
# [*Parameters*]
|
|
#
|
|
# [password] Password that will be used for the keystone db user.
|
|
# Optional. Defaults to: 'keystone_default_password'
|
|
#
|
|
# [dbname] Name of keystone database. Optional. Defaults to keystone.
|
|
#
|
|
# [user] Name of keystone user. Optional. Defaults to keystone.
|
|
#
|
|
# == Dependencies
|
|
# Class['postgresql::server']
|
|
#
|
|
# == Examples
|
|
# == Authors
|
|
#
|
|
# Etienne Pelletier epelletier@morphlabs.com
|
|
#
|
|
# == Copyright
|
|
#
|
|
# Copyright 2012 Etienne Pelletier, unless otherwise noted.
|
|
#
|
|
class keystone::db::postgresql(
|
|
$password,
|
|
$dbname = 'keystone',
|
|
$user = 'keystone'
|
|
) {
|
|
|
|
Class['keystone::db::postgresql'] -> Service<| title == 'keystone' |>
|
|
|
|
require postgresql::python
|
|
|
|
postgresql::db { $dbname:
|
|
user => $user,
|
|
password => $password,
|
|
}
|
|
|
|
Postgresql::Db[$dbname] ~> Exec<| title == 'keystone-manage db_sync' |>
|
|
|
|
}
|