1 # == Class: nova::db::mysql
3 # Class that configures mysql for nova
8 # Password to use for the nova user
11 # (optional) The name of the database
15 # (optional) The mysql user to create
19 # (optional) The IP address of the mysql server
20 # Defaults to '127.0.0.1'
23 # (optional) The charset to use for the nova database
27 # (optional) The collate to use for the nova database
28 # Defaults to 'utf8_general_ci'
31 # (optional) Additional hosts that are allowed to access this DB
35 # (optional) Deprecated. Does nothing
36 # Defaults to 'localzone'
39 # (optional) Deprecated. Does nothing.
41 class nova::db::mysql(
47 $collate = 'utf8_general_ci',
48 $allowed_hosts = undef,
49 $mysql_module = undef,
54 warning('The cluster_id parameter is deprecated and has no effect.')
58 warning('The mysql_module parameter is deprecated. The latest 2.x mysql module will be used.')
61 ::openstacklib::db::mysql { 'nova':
63 password_hash => mysql_password($password),
68 allowed_hosts => $allowed_hosts,
71 ::Openstacklib::Db::Mysql['nova'] ~> Exec<| title == 'nova-db-sync' |>