Do not validate database_connection format

Currently we validate database_connection in 2 layers, each puppet
modules and puppet-oslo, however this makes it difficult to maintain
validation pattern because we always need to fix both.
This patch removes the validation from each puppet modules so that
we need to maitain only one place, puppet-oslo to update validation
logic.

Change-Id: Ie3891da0e6a518d328d9a0367fe16f963ee6a6ba
This commit is contained in:
Takashi Kajinami 2020-08-31 17:57:20 +09:00
parent 86fcaf18f0
commit 637fb051fa
1 changed files with 0 additions and 3 deletions

View File

@ -69,9 +69,6 @@ class tacker::db (
warning('The database_min_pool_size parameter is deprecated, and will be removed in a future release.')
}
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection,
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
oslo::db { 'tacker_config':
db_max_retries => $database_db_max_retries,
connection => $database_connection,