Fix how libvirt package resource is looked up

The package name is not always 'libvirt' and the current logic to find
the package resource using 'name' doesn't work properly. This change
ensures the resource is found by title, which is always 'libvirt'.

Change-Id: Ic26fd0ec9c745077abc82befe15fe0d477e34ce2
(cherry picked from commit 4af91bddca)
This commit is contained in:
Takashi Kajinami 2021-09-28 23:23:02 +09:00
parent 7ff77f8225
commit bdd7c0c95b
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class nova::compute::libvirt::services (
enable => true,
name => $virtlock_service_name,
}
Package<| name == 'libvirt' |> -> Service['virtlockd']
Package<| title == 'libvirt' |> -> Service['virtlockd']
}
if $virtlog_service_name {
@ -97,7 +97,7 @@ class nova::compute::libvirt::services (
enable => true,
name => $virtlog_service_name,
}
Package<| name == 'libvirt' |> -> Service['virtlogd']
Package<| title == 'libvirt' |> -> Service['virtlogd']
}
if $libvirt_service_name and $virtlog_service_name {
Service['virtlogd'] -> Service['libvirt']