diff --git a/CHANGELOG.md b/CHANGELOG.md index 6674a88..0be7515 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +- Treat redhat like other members of the platform_family when generating yum repo url + ## 5.3.2 - *2023-07-10* ## 5.3.1 - *2023-05-17* diff --git a/libraries/helpers.rb b/libraries/helpers.rb index f90e4e6..2f4d007 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -259,7 +259,7 @@ def yum_repo_url(base_url) def yum_repo_platform_string release = yum_releasever # Treat Alma and Rocky as RHEL - if platform?('almalinux', 'rocky', 'amazon') + if platform?('almalinux', 'rocky', 'amazon', 'redhat') "rhel/#{release}/$basearch" else "#{node['platform']}/#{release}/$basearch"