-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support RedHat-based distro 8 & 9 #240
base: master
Are you sure you want to change the base?
Conversation
42b60d1
to
4e92246
Compare
apology no RSpec test background on adding/modifying, supposedly will point the mirror for CentOS 8 from mirror.centos.org to vault.centos.org. For Rocky, Centos Stream, and AlmaLinux based on the changed repo. |
@smortex are there any open items for? I would be happy to have the posibility to use this module with RH8 in our environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, old PR… This may still make sense but as a non-gluster user I can only give advice regarding the Puppet part.
@Kotty666, if interested in this and you know how to reliable check if repos are enabled or not, feel free to fill-in a new PR on top of this to adjust it.
exec { 'Enabling Codeready-Builder repo': | ||
command => 'dnf config-manager --set-enabled codeready-builder-for-rhel-8-x86_64-rpms', | ||
path => ['/usr/bin', '/usr/sbin',], | ||
unless => 'rpm -qa | grep -c python3-pyxattr', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a yum/dnf user, but that does not look like the right way to check if a given repository is enabled.
exec { 'Enabling PowerTools repo': | ||
command => 'dnf config-manager --set-enabled powertools', | ||
path => ['/usr/bin', '/usr/sbin',], | ||
unless => 'rpm -qa | grep -c python3-pyxattr', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
'8' => 'centos.org/centos/8-stream', | ||
'9' => 'stream.centos.org/SIGs/9-stream', | ||
default => "centos.org/centos/${facts['os']['release']['major']}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style:
'8' => 'centos.org/centos/8-stream', | |
'9' => 'stream.centos.org/SIGs/9-stream', | |
default => "centos.org/centos/${facts['os']['release']['major']}" | |
'8' => 'centos.org/centos/8-stream', | |
'9' => 'stream.centos.org/SIGs/9-stream', | |
default => "centos.org/centos/${facts['os']['release']['major']}" |
Pull Request (PR) description
This Pull Request (PR) fixes the following issues