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: I98808ac7e01709c0bf7e9d08a629255e080ccfa4
This commit is contained in:
Takashi Kajinami 2020-08-31 17:52:23 +09:00
parent 109ed4449a
commit 90004f4139
1 changed files with 0 additions and 3 deletions

View File

@ -78,9 +78,6 @@ class mistral::db (
$database_retry_interval_real = pick($::mistral::database_retry_interval,$database_retry_interval)
$database_max_overflow_real = pick($::mistral::database_max_overflow,$database_max_overflow)
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection_real,
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
oslo::db { 'mistral_config':
connection => $database_connection_real,
connection_recycle_time => $database_connection_recycle_time_real,