
It's been deprecated for some time, time to let go. Change-Id: I55e161643b8e9d4145ac5e82a18c04b0767cd127
60 lines
1.3 KiB
Puppet
60 lines
1.3 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_general_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'
|
|
#
|
|
class nova::db::mysql(
|
|
$password,
|
|
$dbname = 'nova',
|
|
$user = 'nova',
|
|
$host = '127.0.0.1',
|
|
$charset = 'utf8',
|
|
$collate = 'utf8_general_ci',
|
|
$allowed_hosts = undef,
|
|
) {
|
|
|
|
::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' |>
|
|
}
|