From 4491d687b2e4310292bde62a1ce176a01d4d55df Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Mon, 31 Aug 2020 17:53:21 +0900 Subject: [PATCH] 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: I5eb1051e67a56941b9684728aa4f4340ddb35aab --- manifests/db.pp | 3 --- 1 file changed, 3 deletions(-) diff --git a/manifests/db.pp b/manifests/db.pp index 3d87e4ec..57f60986 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -79,9 +79,6 @@ class octavia::db ( $database_pool_timeout_real = pick($::octavia::database_pool_timeout, $database_pool_timeout) $database_db_max_retries_real = pick($::octavia::database_db_max_retries, $database_db_max_retries) - validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection_real, - ['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?']) - oslo::db { 'octavia_config': connection => $database_connection_real, connection_recycle_time => $database_connection_recycle_time_real,