Merge "Make sure python3-novaclient is installed before creating fence_compute"

This commit is contained in:
Zuul 2020-07-30 16:16:31 +00:00 committed by Gerrit Code Review
commit 3859f23df3
1 changed files with 8 additions and 2 deletions

View File

@ -241,8 +241,14 @@ class tripleo::profile::base::pacemaker (
} }
} }
if $enable_instanceha and $pacemaker_master { if $enable_instanceha {
include tripleo::profile::base::pacemaker::instance_ha if $pacemaker_master {
include tripleo::profile::base::pacemaker::instance_ha
}
# Until https://bugzilla.redhat.com/show_bug.cgi?id=1857247 is fixed we
# need to make sure the package is installed on the host.
ensure_resource('package', 'python3-novaclient', { ensure => 'installed' })
Package<| name == 'python3-novaclient' |> -> Pcmk_stonith<| title == 'fence-nova' |>
} }
if ($step >= 2 and $pacemaker_master) { if ($step >= 2 and $pacemaker_master) {