From 441e0c406bb3af17c668a5579a9b1a43f3cf77cd Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 1 Oct 2020 14:41:47 -0600 Subject: [PATCH] Fix pcs 0.10 detection for 8-stream Centos 8 stream version is just '8' in the puppet facts so we need to check for this condition to determine if we should use the pcs 0.10 version of the commands. Change-Id: Ia895f11d8d118f544b9bf0afbcf40061fe840abe --- manifests/params.pp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 86d26c63..c3c502c1 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -44,8 +44,9 @@ class pacemaker::params { } else { $pcmk_remote_package_list = ['pacemaker','pcs','fence-agents-all','pacemaker-libs', 'pacemaker-remote'] } - # Detect pcs 0.10.x versions and use different commands - if (versioncmp($::os['release']['full'], '8.0') > 0) { + # Detect pcs 0.10.x versions and use different commands. + # If full version == '8', we're using 8-stream or check if newer than 8.0 + if $::os['release']['full'] == '8' or (versioncmp($::os['release']['full'], '8.0') > 0) { $pcs_010 = true } else { $pcs_010 = false