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
This commit is contained in:
		
				
					committed by
					
						
						Michele Baldessari
					
				
			
			
				
	
			
			
			
						parent
						
							ecc932c942
						
					
				
				
					commit
					a225e9934f
				
			@@ -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'"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user