Add mysql_enable_ndb option
Add mysql_enable_ndb parameter to select mysql storage engine. Change-Id: I6392637052f305f6c0b9381923d8e9a69774a51a Depends-On: https://review.opendev.org/#/c/748067 Closes-Bug: #1892952
This commit is contained in:
parent
66b976f168
commit
9fd21cf7cf
@ -38,6 +38,11 @@
|
||||
# before error is raised. Set to -1 to specify an infinite retry count.
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*mysql_enable_ndb*]
|
||||
# (Optional) If True, transparently enables support for handling MySQL
|
||||
# Cluster (NDB).
|
||||
# Defaults to $::os_service_default
|
||||
#
|
||||
# [*sync_db*]
|
||||
# (Optional) Run db sync on nodes after connection setting has been set.
|
||||
# Defaults to true
|
||||
@ -56,6 +61,7 @@ class heat::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,
|
||||
$database_db_max_retries = $::os_service_default,
|
||||
$sync_db = true,
|
||||
# DEPRECATED PARAMETERS
|
||||
@ -89,6 +95,7 @@ class heat::db (
|
||||
retry_interval => $database_retry_interval_real,
|
||||
max_overflow => $database_max_overflow_real,
|
||||
pool_timeout => $database_pool_timeout,
|
||||
mysql_enable_ndb => $mysql_enable_ndb,
|
||||
db_max_retries => $database_db_max_retries,
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add mysql_enable_ndb parameter to select mysql storage engine.
|
@ -14,6 +14,7 @@ describe 'heat::db' do
|
||||
:retry_interval => '<SERVICE DEFAULT>',
|
||||
:max_overflow => '<SERVICE DEFAULT>',
|
||||
:pool_timeout => '<SERVICE DEFAULT>',
|
||||
:mysql_enable_ndb => '<SERVICE DEFAULT>',
|
||||
)}
|
||||
|
||||
it { should contain_class('heat::db::sync') }
|
||||
@ -30,6 +31,7 @@ describe 'heat::db' do
|
||||
:database_db_max_retries => '-1',
|
||||
:database_max_overflow => '21',
|
||||
:database_pool_timeout => '21',
|
||||
:mysql_enable_ndb => true,
|
||||
:sync_db => false
|
||||
}
|
||||
end
|
||||
@ -45,6 +47,7 @@ describe 'heat::db' do
|
||||
:retry_interval => '11',
|
||||
:max_overflow => '21',
|
||||
:pool_timeout => '21',
|
||||
:mysql_enable_ndb => true,
|
||||
)}
|
||||
|
||||
it { should_not contain_class('heat::db::sync') }
|
||||
|
Loading…
x
Reference in New Issue
Block a user