Merge "Removed deprecated parameter on puppet-fm and puppet-sysinv"
This commit is contained in:
commit
81abafbce9
@ -42,6 +42,15 @@ class fm::db::postgresql(
|
|||||||
|
|
||||||
include ::fm::deps
|
include ::fm::deps
|
||||||
|
|
||||||
|
if $::osfamily == 'Debian' {
|
||||||
|
::openstacklib::db::postgresql { 'fm':
|
||||||
|
password => $password,
|
||||||
|
dbname => $dbname,
|
||||||
|
user => $user,
|
||||||
|
encoding => $encoding,
|
||||||
|
privileges => $privileges,
|
||||||
|
}
|
||||||
|
} else {
|
||||||
::openstacklib::db::postgresql { 'fm':
|
::openstacklib::db::postgresql { 'fm':
|
||||||
password_hash => postgresql_password($user, $password),
|
password_hash => postgresql_password($user, $password),
|
||||||
dbname => $dbname,
|
dbname => $dbname,
|
||||||
@ -49,6 +58,7 @@ class fm::db::postgresql(
|
|||||||
encoding => $encoding,
|
encoding => $encoding,
|
||||||
privileges => $privileges,
|
privileges => $privileges,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Anchor['fm::db::begin']
|
Anchor['fm::db::begin']
|
||||||
~> Class['fm::db::postgresql']
|
~> Class['fm::db::postgresql']
|
||||||
|
@ -46,6 +46,15 @@ class sysinv::db::postgresql(
|
|||||||
$privileges = 'ALL',
|
$privileges = 'ALL',
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
if $::osfamily == 'Debian' {
|
||||||
|
::openstacklib::db::postgresql { 'sysinv':
|
||||||
|
password => $password,
|
||||||
|
dbname => $dbname,
|
||||||
|
user => $user,
|
||||||
|
encoding => $encoding,
|
||||||
|
privileges => $privileges,
|
||||||
|
}
|
||||||
|
} else {
|
||||||
::openstacklib::db::postgresql { 'sysinv':
|
::openstacklib::db::postgresql { 'sysinv':
|
||||||
password_hash => postgresql_password($user, $password),
|
password_hash => postgresql_password($user, $password),
|
||||||
dbname => $dbname,
|
dbname => $dbname,
|
||||||
@ -53,6 +62,7 @@ class sysinv::db::postgresql(
|
|||||||
encoding => $encoding,
|
encoding => $encoding,
|
||||||
privileges => $privileges,
|
privileges => $privileges,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
::Openstacklib::Db::Postgresql['sysinv'] ~> Service <| title == 'sysinv-api' |>
|
::Openstacklib::Db::Postgresql['sysinv'] ~> Service <| title == 'sysinv-api' |>
|
||||||
::Openstacklib::Db::Postgresql['sysinv'] ~> Service <| title == 'sysinv-conductor' |>
|
::Openstacklib::Db::Postgresql['sysinv'] ~> Service <| title == 'sysinv-conductor' |>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user