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: Ia0be0fce91caa292517715b78c1f3f711b9ab5ec
This commit is contained in:
Takashi Kajinami 2020-08-31 19:24:30 +09:00
parent e656d11e78
commit 622494f657

View File

@ -57,11 +57,7 @@ class neutron::db (
include neutron::deps
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection,
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])
if $database_connection {
oslo::db { 'neutron_config':
connection => $database_connection,
connection_recycle_time => $database_connection_recycle_time,