-
Notifications
You must be signed in to change notification settings - Fork 114
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
Added support for redhat 8 and 9 #177
Conversation
Rocky 8 & 9 failed because of epel repo - see https://github.com/mrlesmithjr/ansible-mariadb-galera-cluster/actions/runs/6113551752/job/16596664618?pr=177#step:6:270 Why is epel required in redhat? |
epel is required for rocky 8 and 9 also, but the method for adding the epel repo is different for redhat. https://docs.fedoraproject.org/en-US/epel/ I'll see if I can figure out why the tests started failing. |
The tests do run via github actions on my fork. The tests passed for my latest commit. |
Enabling EPEL can be very. difficult in some cases. A subject by itself. A generic rocky looks easy. There is just a need to install an epel-release package that is available by default in the rocky repositories. Now on "real world users", there is likely a need to provide a dedicated internal mirror and/or a special process to enable it (via redhat satellite, katello or alikes). So this is probably worth a role by itself to handle all cases. The main problem by installing the yum configuration by hands (not using the package) is that epel-release won't be updated as needed (like repository layout change or GPG key rotation, etc). So there is indeed a need to "maintain" theses URL in a project which main purpose is not EPEL. I would go with an easier route to only enable epel-release package installation on the default rocky cases (and eventually alma if relevant) and use the galera_enable_epel_release boolean to discard when not relevant... |
Something like this?
|
This looks fine with RHEL case or even as a generic case (for RedHat family without Fedora), but then this way or installing RPM with an external url tends to not properly detect changed when cases.
It looks possible to handle redhat-9.yml cases easily also.... |
LGTM - @elcomtik thoughts? |
I saw so many implementations for installing epel repo, so I tend to have an opinion to extract these to separate role. I never used RHEL Never mind, I have one dispute for this PR. Variable galera_enable_epel_repo would not be defined in both variables & defaults. In my opinion, this should be in defaults. Choosing distros where this task may run can be handled in another 'when' condition based on ansible_distribution_major_version. This principle is already used in other tasks. |
So
to
Would that work? |
@elcomtik I'm not sure to understand the benefit of such variable not defined in defaults/main ? @cmayer89
That way EPEL can be automatically set by default and disabled by the (few) users that need to handle this differently (or in a separate role). I would also change the variable name to galera_enable_epel_release (instead of galera_enable_epel_repo) to further highlight that the epel-release RPM install method is used. |
@kwizart I agree with you on this
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@cmayer89 - are you still interested in this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
The process for adding the epel repo is a bit different for redhat. This pull adds an ansible task to add the epel repo for rhel 8 and 9.
Related Issue
#175
Types of changes
Checklist: