Add use_usm parameter to dcorch.conf

Add use_usm parameter to /etc/dcorch/dcorch.conf to be used
in a switch to choose between the usm and patching api. Once the usm
is fully integrated, this parameter will be removed.

Test Case:
Apply the change and restart the system controller and
ensure use_usm parameter is in /etc/dcorch/dcorch.conf

Story: 2010676
Task: 48610

Change-Id: I9ff6e3a7c5eaef81e0d6c9ca7529fe4c278275bc
Signed-off-by: Christopher Souza <Christopher.DeOliveiraSouza@windriver.com>
This commit is contained in:
Christopher Souza
2023-08-14 15:26:32 -03:00
committed by Christopher de Oliveira Souza
parent 3cfe261cce
commit 58cd7e1117
2 changed files with 7 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
# TODO(kmacleod): playbook_timeout should be exposed to persist and modify
# via 'system service-parameter...'
# TODO(cdeolive): remove use_usm parameter when usm is fully integrated
class dcmanager (
$database_connection = '',
$database_idle_timeout = 3600,

View File

@@ -59,6 +59,7 @@ class dcorch (
$usm_remote_port = 5497,
$identity_bind_port = 25000,
$identity_remote_port = 5000,
$use_usm = false
) {
include dcorch::params
@@ -101,6 +102,11 @@ class dcorch (
'DEFAULT/api_paste_config': value => $api_paste_config;
}
# TODO(cdeolive): remove this parameter when usm is fully integrated
dcorch_config {
'DEFAULT/use_usm': value => $use_usm;
}
# Automatically add psycopg2 driver to postgresql (only does this if it is missing)
$real_connection = regsubst($database_connection,'^postgresql:','postgresql+psycopg2:')