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
This commit is contained in:
Takashi Kajinami
2021-09-28 23:23:02 +09:00
parent ef02036bfd
commit 4af91bddca

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']