Merge "Removed deprecated parameter on puppet-fm and puppet-sysinv"

This commit is contained in:
Zuul 2022-05-02 17:15:53 +00:00 committed by Gerrit Code Review
commit 81abafbce9
2 changed files with 32 additions and 12 deletions

View File

@ -42,12 +42,22 @@ class fm::db::postgresql(
include ::fm::deps
::openstacklib::db::postgresql { 'fm':
password_hash => postgresql_password($user, $password),
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
if $::osfamily == 'Debian' {
::openstacklib::db::postgresql { 'fm':
password => $password,
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
}
} else {
::openstacklib::db::postgresql { 'fm':
password_hash => postgresql_password($user, $password),
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
}
}
Anchor['fm::db::begin']

View File

@ -46,12 +46,22 @@ class sysinv::db::postgresql(
$privileges = 'ALL',
) {
::openstacklib::db::postgresql { 'sysinv':
password_hash => postgresql_password($user, $password),
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
if $::osfamily == 'Debian' {
::openstacklib::db::postgresql { 'sysinv':
password => $password,
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
}
} else {
::openstacklib::db::postgresql { 'sysinv':
password_hash => postgresql_password($user, $password),
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
}
}
::Openstacklib::Db::Postgresql['sysinv'] ~> Service <| title == 'sysinv-api' |>