commit 441e0c406bb3af17c668a5579a9b1a43f3cf77cd Author: Alex Schultz Date: Thu Oct 1 14:41:47 2020 -0600 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 diff --git a/manifests/params.pp b/manifests/params.pp index 86d26c6..c3c502c 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