Skip to content

Commit 378feb6

Browse files
committed
sap_ha_pacemaker_cluster: fix stonith resource dup
During the previous change of the stonith code a conditional was removed that did not apply to the GCP default, but is required for other platform default stonith resources that use host maps.
1 parent 44281ca commit 378feb6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

roles/sap_ha_pacemaker_cluster/tasks/construct_vars_stonith.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@
109109
loop_control:
110110
loop_var: stonith_host_item
111111
label: "{{ stonith_host_item }}"
112+
when:
113+
- (hostvars[stonith_host_item].__sap_ha_pacemaker_cluster_stonith_default).id
114+
not in (__sap_ha_pacemaker_cluster_stonith_resource | d([])| map(attribute='id'))
112115

113116
# The location constraints are needed, when the fence resource is configured
114117
# per host and must not run on the host it targets.

0 commit comments

Comments
 (0)