
* nova::api::auth_strategy (deprecated since 4.0.0) * nova::api::workers (deprecated since 4.0.0) * nova::compute::libvirt::libvirt_type (deprecated since 4.0.0) * nova::db::mysql::cluster_id (deprecated since 4.0.0) * nova::nova_cluster_id (deprecated since 4.0.0) * nova::nova_group_id (deprecated since 4.2.0) * nova::nova_user_id (deprecated since 4.2.0) * nova::nova_shell (deprecated since 4.2.0) * nova::sql_connection (deprecated since 3.0.0) * nova::sql_idle_timeout (deprecated since 3.0.0) * nova::logdir (deprecated since 3.2.0) * nova::monitoring_notifications (deprecated since 4.0.0) * nova::keystone::auth::cinder (deprecated since 3.0.0) Change-Id: I31e8517b2a25febc9f6cd01197be279ee772ebce
68 lines
1.5 KiB
Puppet
68 lines
1.5 KiB
Puppet
# == Class: nova::db::mysql
|
|
#
|
|
# Class that configures mysql for nova
|
|
#
|
|
# === Parameters:
|
|
#
|
|
# [*password*]
|
|
# Password to use for the nova user
|
|
#
|
|
# [*dbname*]
|
|
# (optional) The name of the database
|
|
# Defaults to 'nova'
|
|
#
|
|
# [*user*]
|
|
# (optional) The mysql user to create
|
|
# Defaults to 'nova'
|
|
#
|
|
# [*host*]
|
|
# (optional) The IP address of the mysql server
|
|
# Defaults to '127.0.0.1'
|
|
#
|
|
# [*charset*]
|
|
# (optional) The charset to use for the nova database
|
|
# Defaults to 'utf8'
|
|
#
|
|
# [*collate*]
|
|
# (optional) The collate to use for the nova database
|
|
# Defaults to 'utf8_unicode_ci'
|
|
#
|
|
# [*allowed_hosts*]
|
|
# (optional) Additional hosts that are allowed to access this DB
|
|
# Defaults to undef
|
|
#
|
|
# [*cluster_id*]
|
|
# (optional) Deprecated. Does nothing
|
|
# Defaults to 'localzone'
|
|
#
|
|
# [*mysql_module*]
|
|
# (optional) Deprecated. Does nothing.
|
|
#
|
|
class nova::db::mysql(
|
|
$password,
|
|
$dbname = 'nova',
|
|
$user = 'nova',
|
|
$host = '127.0.0.1',
|
|
$charset = 'utf8',
|
|
$collate = 'utf8_unicode_ci',
|
|
$allowed_hosts = undef,
|
|
$mysql_module = undef,
|
|
) {
|
|
|
|
if $mysql_module {
|
|
warning('The mysql_module parameter is deprecated. The latest 2.x mysql module will be used.')
|
|
}
|
|
|
|
::openstacklib::db::mysql { 'nova':
|
|
user => $user,
|
|
password_hash => mysql_password($password),
|
|
dbname => $dbname,
|
|
host => $host,
|
|
charset => $charset,
|
|
collate => $collate,
|
|
allowed_hosts => $allowed_hosts,
|
|
}
|
|
|
|
::Openstacklib::Db::Mysql['nova'] ~> Exec<| title == 'nova-db-sync' |>
|
|
}
|