2014-12-30 21:54:00 +01:00
|
|
|
# == Class: keystone::db::postgresql
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# Class that configures postgresql for keystone
|
|
|
|
# Requires the Puppetlabs postgresql module.
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# == Authors
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# Stackforge Contributors puppet-openstack@puppetlabs.com
|
|
|
|
# Etienne Pelletier epelletier@morphlabs.com
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# == Copyright
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# Copyright 2013-2014 Stackforge Contributors
|
|
|
|
# Copyright 2012 Etienne Pelletier, unless otherwise noted.
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# === Parameters
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# [*password*]
|
|
|
|
# (Required) Password to connect to the database.
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# [*dbname*]
|
|
|
|
# (Optional) Name of the database.
|
|
|
|
# Defaults to 'keystone'.
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# [*user*]
|
|
|
|
# (Optional) User to connect to the database.
|
|
|
|
# Defaults to 'keystone'.
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# [*encoding*]
|
|
|
|
# (Optional) The charset to use for the database.
|
|
|
|
# Default to undef.
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
2014-12-30 21:54:00 +01:00
|
|
|
# [*privileges*]
|
|
|
|
# (Optional) Privileges given to the database user.
|
|
|
|
# Default to 'ALL'
|
2012-06-13 15:01:27 -05:00
|
|
|
#
|
|
|
|
class keystone::db::postgresql(
|
2012-10-14 11:51:45 -07:00
|
|
|
$password,
|
2014-12-30 21:54:00 +01:00
|
|
|
$dbname = 'keystone',
|
|
|
|
$user = 'keystone',
|
|
|
|
$encoding = undef,
|
|
|
|
$privileges = 'ALL',
|
2012-06-13 15:01:27 -05:00
|
|
|
) {
|
|
|
|
|
2019-12-08 23:09:22 +01:00
|
|
|
include keystone::deps
|
2012-06-13 15:01:27 -05:00
|
|
|
|
2014-12-30 21:54:00 +01:00
|
|
|
::openstacklib::db::postgresql { 'keystone':
|
2020-05-19 20:09:38 +09:00
|
|
|
password => $password,
|
|
|
|
dbname => $dbname,
|
|
|
|
user => $user,
|
|
|
|
encoding => $encoding,
|
|
|
|
privileges => $privileges,
|
2013-07-01 17:03:01 -04:00
|
|
|
}
|
2012-06-13 15:01:27 -05:00
|
|
|
|
2016-02-23 18:31:15 -07:00
|
|
|
Anchor['keystone::db::begin']
|
|
|
|
~> Class['keystone::db::postgresql']
|
|
|
|
~> Anchor['keystone::db::end']
|
2012-06-13 15:01:27 -05:00
|
|
|
}
|