1 # == Class: keystone::db::postgresql
3 # Class that configures postgresql for keystone
4 # Requires the Puppetlabs postgresql module.
8 # Stackforge Contributors puppet-openstack@puppetlabs.com
9 # Etienne Pelletier epelletier@morphlabs.com
13 # Copyright 2013-2014 Stackforge Contributors
14 # Copyright 2012 Etienne Pelletier, unless otherwise noted.
19 # (Required) Password to connect to the database.
22 # (Optional) Name of the database.
23 # Defaults to 'keystone'.
26 # (Optional) User to connect to the database.
27 # Defaults to 'keystone'.
30 # (Optional) The charset to use for the database.
34 # (Optional) Privileges given to the database user.
37 class keystone::db::postgresql(
45 Class['keystone::db::postgresql'] -> Service<| title == 'keystone' |>
47 ::openstacklib::db::postgresql { 'keystone':
48 password_hash => postgresql_password($user, $password),
51 encoding => $encoding,
52 privileges => $privileges,
55 ::Openstacklib::Db::Postgresql['keystone'] ~> Exec<| title == 'keystone-manage db_sync' |>