Skip to content

Commit

Permalink
Update yum config for CentOS Stream 9
Browse files Browse the repository at this point in the history
The Powertools repo doesn't exist for CentOS Stream 9.  The equivalent
packages are in the CRB repo.
  • Loading branch information
pdohertybcov committed Feb 29, 2024
1 parent 921fae4 commit 11c0f45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

Check failure on line 8 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / lint-unit / markdownlint-cli2

Headings should be surrounded by blank lines

CHANGELOG.md:8 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Unreleased"] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md022.md
- CentOS Stream 9 uses 'crb' instead of the 'powertools' repo.

Check failure on line 9 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / lint-unit / markdownlint-cli2

Lists should be surrounded by blank lines

CHANGELOG.md:9 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- CentOS Stream 9 uses 'crb' i..."] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md032.md

## 2.5.5 - *2023-10-26*

Expand Down
8 changes: 7 additions & 1 deletion resources/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
src_path = "#{Chef::Config['file_cache_path']}/ruby-build"

if platform_family?('rhel')
if node['platform_version'].to_i >= 8
if node['platform_version'].to_i == 9
package 'yum-utils'

execute 'yum-config-manager --enable crb' do
not_if 'yum-config-manager --dump crb | grep -q "enabled = 1"'
end
elsif node['platform_version'].to_i == 8
package 'yum-utils'

execute 'yum-config-manager --enable powertools' do
Expand Down

0 comments on commit 11c0f45

Please sign in to comment.