Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine. Change-Id: I2f6351c29e50070bc712879642fd509d9797ddb0 Depends-On: https://review.opendev.org/#/c/748067 Closes-Bug: #1892952
This commit is contained in:
parent
960c621923
commit
7edf617586
@ -38,6 +38,11 @@
|
||||
# (Optional) If set, use this value for pool_timeout with SQLAlchemy.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*mysql_enable_ndb*]
|
||||
# (Optional) If True, transparently enables support for handling MySQL
|
||||
# Cluster (NDB).
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
class keystone::db (
|
||||
$database_db_max_retries = $::os_service_default,
|
||||
$database_connection = 'sqlite:////var/lib/keystone/keystone.sqlite',
|
||||
@ -47,6 +52,7 @@ class keystone::db (
|
||||
$database_retry_interval = $::os_service_default,
|
||||
$database_max_overflow = $::os_service_default,
|
||||
$database_pool_timeout = $::os_service_default,
|
||||
$mysql_enable_ndb = $::os_service_default,
|
||||
) {
|
||||
|
||||
include keystone::deps
|
||||
@ -73,6 +79,7 @@ class keystone::db (
|
||||
retry_interval => $database_retry_interval_real,
|
||||
max_overflow => $database_max_overflow_real,
|
||||
pool_timeout => $database_pool_timeout,
|
||||
mysql_enable_ndb => $mysql_enable_ndb,
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add mysql_enable_ndb parameter to select mysql storage engine.
|
@ -14,6 +14,7 @@ describe 'keystone::db' do
|
||||
:retry_interval => '<SERVICE DEFAULT>',
|
||||
:max_overflow => '<SERVICE DEFAULT>',
|
||||
:pool_timeout => '<SERVICE DEFAULT>',
|
||||
:mysql_enable_ndb => '<SERVICE DEFAULT>',
|
||||
)}
|
||||
end
|
||||
|
||||
@ -27,6 +28,7 @@ describe 'keystone::db' do
|
||||
:database_max_retries => '11',
|
||||
:database_max_overflow => '21',
|
||||
:database_pool_timeout => '21',
|
||||
:mysql_enable_ndb => true,
|
||||
:database_retry_interval => '11',
|
||||
}
|
||||
end
|
||||
@ -42,6 +44,7 @@ describe 'keystone::db' do
|
||||
:retry_interval => '11',
|
||||
:max_overflow => '21',
|
||||
:pool_timeout => '21',
|
||||
:mysql_enable_ndb => true,
|
||||
)}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user