From 44ff8630e86057f99eb14cf9963c32ce18af3128 Mon Sep 17 00:00:00 2001 From: Doninelli Davide Date: Mon, 14 Oct 2024 13:46:38 +0200 Subject: [PATCH] test for RH automatic test --- manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 9697f1bd..dc9ff2d5 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -424,7 +424,7 @@ # Enable High Availability repository case $facts['os']['name'] { 'RedHat': { - if $facts['os']['release']['major'] > 7 { + if $facts['os']['release']['major'] > '7' { exec { 'enable_highavailability_repo': command => "subscription-manager repos --enable=${highavailability_repo}", path => '/usr/bin:/usr/sbin:/bin:/sbin', @@ -433,7 +433,7 @@ } } 'CentOS': { - if $facts['os']['release']['major'] == 9 { + if $facts['os']['release']['major'] == '9' { exec { 'enable_highavailability_repo': command => "yum config-manager --set-enabled ${highavailability_repo}", path => '/usr/bin:/usr/sbin:/bin:/sbin',