Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/sql/_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def install_pg_gem
if platform?('oracle')
options ['--enablerepo=ol8_codeready_builder']
else
options('--enablerepo=powertools')
options('--enablerepo=codeready-builder-for-rhel-8')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot This is only correct for RHEL, powertools is required for centos-stream, almalinux and rocky.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're absolutely right! I've updated the code to handle all RHEL 8 variants correctly. The new implementation uses case node['platform'] to detect the specific platform:

  • RHEL: codeready-builder-for-rhel-8
  • Oracle Linux: ol8_codeready_builder
  • CentOS Stream, AlmaLinux, Rocky: powertools (restored for these platforms)

This preserves the original powertools repository for CentOS Stream, AlmaLinux, and Rocky Linux while fixing the issue for actual RHEL systems. Commit: 1adde8a

end
end
when 9
Expand Down
Loading