From 90005dd883ed7cacb1f446717a1d8c97520a6d8c Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Wed, 1 Sep 2021 14:51:35 +0200 Subject: [PATCH] Extend fencing to hosts using fence_kubevirt agent. This commit extends the fencing class allowing operators to use fence_kubevirt for nodes running on kubevirt / CNV. Depends-On: I18fd2297063c7157d6b743c7fc9c161bf23dca39 Change-Id: I4f4658b3320c2cce2cf302dbb5f99bb463bd22ca --- manifests/fencing.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manifests/fencing.pp b/manifests/fencing.pp index 54158c37a..8fa229ce3 100644 --- a/manifests/fencing.pp +++ b/manifests/fencing.pp @@ -132,6 +132,9 @@ class tripleo::fencing( $kdump_devices = local_fence_devices('fence_kdump', $all_devices) create_resources('pacemaker::stonith::fence_kdump', $kdump_devices, $common_params) + $kubevirt_devices = local_fence_devices('fence_kubevirt', $all_devices) + create_resources('pacemaker::stonith::fence_kubevirt', $kubevirt_devices, $common_params) + $rhev_devices = local_fence_devices('fence_rhevm', $all_devices) create_resources('pacemaker::stonith::fence_rhevm', $rhev_devices, $common_params) @@ -140,8 +143,8 @@ class tripleo::fencing( $data = { 'xvm' => $xvm_devices, 'ironic' => $ironic_devices, 'redfish' => $redfish_devices, - 'ipmilan' => $ipmilan_devices, 'kdump' => $kdump_devices, 'rhevm' => $rhev_devices, - 'cisco_ucs' => $ucs_devices + 'ipmilan' => $ipmilan_devices, 'kdump' => $kdump_devices, 'kubevirt' => $kubevirt_devices, + 'rhevm' => $rhev_devices, 'cisco_ucs' => $ucs_devices } $data.each |$items| {