From bb6622355e08f941b65058b225c7a215a6037448 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Tue, 16 Apr 2019 14:46:38 -0400 Subject: [PATCH] Renaming deprecated options and updating spec requirements - Renaming idle_timeout to connection_recycle_time since it was deprecated in Stein - Explicitly including required packages in the sysinv spec file to fix DC Change-Id: Ief055d26f3a1eb43b8cf144952a49e7e0f3ff939 Story: 2004765 Task: 28883 Depends-On: https://review.openstack.org/#/c/653086 Signed-off-by: Tyler Smith --- modules/puppet-dcmanager/src/dcmanager/manifests/init.pp | 8 ++++---- modules/puppet-dcorch/src/dcorch/manifests/init.pp | 8 ++++---- modules/puppet-fm/src/fm/manifests/init.pp | 8 ++++---- modules/puppet-sysinv/src/sysinv/manifests/init.pp | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/puppet-dcmanager/src/dcmanager/manifests/init.pp b/modules/puppet-dcmanager/src/dcmanager/manifests/init.pp index 995d60f29..c692cb476 100644 --- a/modules/puppet-dcmanager/src/dcmanager/manifests/init.pp +++ b/modules/puppet-dcmanager/src/dcmanager/manifests/init.pp @@ -77,10 +77,10 @@ class dcmanager ( $real_connection = regsubst($database_connection,'^postgresql:','postgresql+psycopg2:') dcmanager_config { - 'database/connection': value => $real_connection, secret => true; - 'database/idle_timeout': value => $database_idle_timeout; - 'database/max_pool_size': value => $database_max_pool_size; - 'database/max_overflow': value => $database_max_overflow; + 'database/connection': value => $real_connection, secret => true; + 'database/connection_recycle_time': value => $database_idle_timeout; + 'database/max_pool_size': value => $database_max_pool_size; + 'database/max_overflow': value => $database_max_overflow; } if $use_syslog { diff --git a/modules/puppet-dcorch/src/dcorch/manifests/init.pp b/modules/puppet-dcorch/src/dcorch/manifests/init.pp index 87a405982..b2d3987e3 100644 --- a/modules/puppet-dcorch/src/dcorch/manifests/init.pp +++ b/modules/puppet-dcorch/src/dcorch/manifests/init.pp @@ -104,10 +104,10 @@ class dcorch ( $real_connection = regsubst($database_connection,'^postgresql:','postgresql+psycopg2:') dcorch_config { - 'database/connection': value => $real_connection, secret => true; - 'database/idle_timeout': value => $database_idle_timeout; - 'database/max_pool_size': value => $database_max_pool_size; - 'database/max_overflow': value => $database_max_overflow; + 'database/connection': value => $real_connection, secret => true; + 'database/connection_recycle_time': value => $database_idle_timeout; + 'database/max_pool_size': value => $database_max_pool_size; + 'database/max_overflow': value => $database_max_overflow; } if $use_syslog { diff --git a/modules/puppet-fm/src/fm/manifests/init.pp b/modules/puppet-fm/src/fm/manifests/init.pp index b2958c933..2f63292b8 100644 --- a/modules/puppet-fm/src/fm/manifests/init.pp +++ b/modules/puppet-fm/src/fm/manifests/init.pp @@ -95,10 +95,10 @@ class fm ( # Automatically add psycopg2 driver to postgresql (only does this if it is missing) $real_connection = regsubst($database_connection,'^postgresql:','postgresql+psycopg2:') fm_config { - 'database/connection': value => $real_connection, secret => true; - 'database/idle_timeout': value => $database_idle_timeout; - 'database/max_pool_size': value => $database_max_pool_size; - 'database/max_overflow': value => $database_max_overflow; + 'database/connection': value => $real_connection, secret => true; + 'database/connection_recycle_time': value => $database_idle_timeout; + 'database/max_pool_size': value => $database_max_pool_size; + 'database/max_overflow': value => $database_max_overflow; } fm_config { diff --git a/modules/puppet-sysinv/src/sysinv/manifests/init.pp b/modules/puppet-sysinv/src/sysinv/manifests/init.pp index 2a719d82c..c6460528b 100644 --- a/modules/puppet-sysinv/src/sysinv/manifests/init.pp +++ b/modules/puppet-sysinv/src/sysinv/manifests/init.pp @@ -166,10 +166,10 @@ class sysinv ( $real_connection = regsubst($database_connection,'^postgresql:','postgresql+psycopg2:') sysinv_config { - 'database/connection': value => $real_connection, secret => true; - 'database/idle_timeout': value => $database_idle_timeout; - 'database/max_pool_size': value => $database_max_pool_size; - 'database/max_overflow': value => $database_max_overflow; + 'database/connection': value => $real_connection, secret => true; + 'database/connection_recycle_time': value => $database_idle_timeout; + 'database/max_pool_size': value => $database_max_pool_size; + 'database/max_overflow': value => $database_max_overflow; } sysinv_config {