Skip to content

Commit

Permalink
Use RHEL flavor of CRB on RHEL
Browse files Browse the repository at this point in the history
This depends on a puppet/rhsm module.
  • Loading branch information
adamruzicka authored and ekohl committed Jun 14, 2024
1 parent bf17eef commit 6de5754
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ fixtures:
repo: 'https://github.com/puppetlabs/puppetlabs-selinux_core'
puppet_version: '>= 6.0.0'
systemd: "https://github.com/camptocamp/puppet-systemd"
rhsm: "https://github.com/voxpupuli/puppet-rhsm"
13 changes: 10 additions & 3 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
# @api private
class katello_devel::install {
if $facts['os']['release']['major'] == '9' {
yumrepo { 'crb':
enabled => true,
before => Package['libvirt-devel'],
if $facts['os']['name'] == 'RedHat' {
rh_repo { "codeready-builder-for-rhel-${facts['os']['release']['major']}-${facts['os']['architecture']}-rpms":
ensure => present,
before => Package['libvirt-devel'],
}
} else {
yumrepo { 'crb':
enabled => true,
before => Package['libvirt-devel'],
}
}
}

Expand Down

0 comments on commit 6de5754

Please sign in to comment.