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.
9 # (Mandatory) Password to connect to the database.
10 # Defaults to 'false'.
13 # (Optional) Name of the database.
14 # Defaults to 'keystone'.
17 # (Optional) User to connect to the database.
18 # Defaults to 'keystone'.
21 # (Optional) The default source host user is allowed to connect from.
22 # Defaults to '127.0.0.1'
25 # (Optional) Other hosts the user is allowed to connect from.
26 # Defaults to 'undef'.
29 # (Optional) The database charset.
33 # (Optional) The database collate.
34 # Only used with mysql modules >= 2.2.
35 # Defaults to 'utf8_general_ci'
37 # === Deprecated Parameters
40 # (Optional) Does nothing.
43 # Class['mysql::server']
48 # Dan Bode dan@puppetlabs.com
52 # Copyright 2012 Puppetlabs Inc, unless otherwise noted.
54 class keystone::db::mysql(
60 $collate = 'utf8_general_ci',
61 $mysql_module = undef,
62 $allowed_hosts = undef
66 warning('The mysql_module parameter is deprecated. The latest 2.x mysql module will be used.')
69 validate_string($password)
71 ::openstacklib::db::mysql { 'keystone':
73 password_hash => mysql_password($password),
78 allowed_hosts => $allowed_hosts,
81 ::Openstacklib::Db::Mysql['keystone'] ~> Exec<| title == 'keystone-manage db_sync' |>