From a225e9934f0b00a72de725bfa1059453f90adbac Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Thu, 12 Aug 2021 10:34:01 +0200 Subject: [PATCH] Fix up cluster_setup_extras usage This pairs with https://review.opendev.org/c/openstack/puppet-tripleo/+/739933. Starting with pcs 0.10 (CentOS/RHEL 8) the arguments to pcs cluster setup changed completely in an incompatible way and in fact are ignored by puppet-pacemaker. This review makes sure ${cluster_setup_extras_real} is taken into account when the cluster is set up via pcs 0.10, addressing LP#1886789. Related-Bug: #1886789 Change-Id: I1dc3a72a51a4f816bb79986e845798d869223ffe --- manifests/corosync.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/corosync.pp b/manifests/corosync.pp index 7f8dd323..1d9c33eb 100644 --- a/manifests/corosync.pp +++ b/manifests/corosync.pp @@ -247,7 +247,7 @@ class pacemaker::corosync( # pcs-0.10.x has different commands to set up the cluster if $::pacemaker::pcs_010 { - $cluster_setup_cmd = "${::pacemaker::pcs_bin} cluster setup ${cluster_name} ${cluster_members_rrp_real}" + $cluster_setup_cmd = "${::pacemaker::pcs_bin} cluster setup ${cluster_name} ${cluster_members_rrp_real} ${cluster_setup_extras_real}" $cluster_reauthenticate_cmd = "${::pacemaker::pcs_bin} host auth ${cluster_members} -u hacluster -p ${::pacemaker::hacluster_pwd}" $cluster_authenticate_cmd = "${::pacemaker::pcs_bin} host auth ${cluster_members} -u hacluster -p ${::pacemaker::hacluster_pwd}" $cluster_authenticate_unless = "${::pacemaker::pcs_bin} host auth ${cluster_members} -u hacluster -p ${::pacemaker::hacluster_pwd} | grep 'Already authorized'"