Skip to content

Commit

Permalink
test for RH automatic test
Browse files Browse the repository at this point in the history
  • Loading branch information
Doninelli Davide authored and Doninelli Davide committed Oct 14, 2024
1 parent dd9cb5d commit 44ff863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 44ff863

Please sign in to comment.