1 # The keystone::db::mysql class implements mysql backend for keystone
3 # This class can be used to create tables, users and grant
4 # privelege for a mysql keystone database.
8 # [password] Password that will be used for the keystone db user.
9 # Optional. Defaults to: 'keystone_default_password'
11 # [dbname] Name of keystone database. Optional. Defaults to keystone.
13 # [user] Name of keystone user. Optional. Defaults to keystone.
15 # [host] Host where user should be allowed all priveleges for database.
16 # Optional. Defaults to 127.0.0.1.
18 # [allowed_hosts] Hosts allowed to use the database
20 # [*mysql_module*] Deprecated. Does nothing.
23 # Class['mysql::server']
28 # Dan Bode dan@puppetlabs.com
32 # Copyright 2012 Puppetlabs Inc, unless otherwise noted.
34 class keystone::db::mysql(
40 $collate = 'utf8_unicode_ci',
41 $mysql_module = undef,
42 $allowed_hosts = undef
46 warning('The mysql_module parameter is deprecated. The latest 2.x mysql module will be used.')
49 validate_string($password)
51 ::openstacklib::db::mysql { 'keystone':
53 password_hash => mysql_password($password),
58 allowed_hosts => $allowed_hosts,
61 ::Openstacklib::Db::Mysql['keystone'] ~> Exec<| title == 'keystone-manage db_sync' |>