Skip to content
Draft
Changes from all 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
6 changes: 5 additions & 1 deletion libraries/sql/_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,13 @@ def install_pg_gem
declare_resource(:package, libpq_package_name) { compile_time(true) }
declare_resource(:package, 'perl-IPC-Run') do
compile_time(true)
if platform?('oracle')
case node['platform']
when 'oracle'
options ['--enablerepo=ol8_codeready_builder']
when 'redhat'
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

else
# CentOS Stream, AlmaLinux, Rocky Linux use powertools
options('--enablerepo=powertools')
end
end
Expand Down