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
This commit is contained in:
Alex Schultz 2020-10-01 14:41:47 -06:00
parent b3596d187d
commit 441e0c406b
1 changed files with 3 additions and 2 deletions

View File

@ -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