diff --git a/manifests/db.pp b/manifests/db.pp index a5541c39..eaa70dc7 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -33,6 +33,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 +# # DEPRECATED PARAMETERS # # [*database_min_pool_size*] @@ -47,6 +52,7 @@ class trove::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, # DEPRECATED PARAMETERS $database_min_pool_size = undef, ) { @@ -77,5 +83,6 @@ class trove::db ( retry_interval => $database_retry_interval_real, max_overflow => $database_max_overflow_real, pool_timeout => $database_pool_timeout, + mysql_enable_ndb => $mysql_enable_ndb, } } diff --git a/releasenotes/notes/add_mysql_enable_ndb-option-b5f429ce4141a4e4.yaml b/releasenotes/notes/add_mysql_enable_ndb-option-b5f429ce4141a4e4.yaml new file mode 100644 index 00000000..2e28c5c6 --- /dev/null +++ b/releasenotes/notes/add_mysql_enable_ndb-option-b5f429ce4141a4e4.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Add mysql_enable_ndb parameter to select mysql storage engine. diff --git a/spec/classes/trove_db_spec.rb b/spec/classes/trove_db_spec.rb index d675679a..dfc3ae56 100644 --- a/spec/classes/trove_db_spec.rb +++ b/spec/classes/trove_db_spec.rb @@ -13,6 +13,7 @@ describe 'trove::db' do :retry_interval => '', :max_overflow => '', :pool_timeout => '', + :mysql_enable_ndb => '', )} end @@ -25,6 +26,7 @@ describe 'trove::db' do :database_max_retries => '11', :database_max_overflow => '21', :database_pool_timeout => '21', + :mysql_enable_ndb => true, :database_retry_interval => '11', } end @@ -39,6 +41,7 @@ describe 'trove::db' do :retry_interval => '11', :max_overflow => '21', :pool_timeout => '21', + :mysql_enable_ndb => true, )} end end