Skip to content
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

Enhance remap user tasks from os_setup role #18

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

kysrpex
Copy link
Contributor

@kysrpex kysrpex commented Dec 6, 2023

Complete overhaul of remap_user.yml. Instead of checking only for the existence of the galaxy user and group, it will now go over all users and groups defined in handy_users and handy_groups and remap any existing users or groups with conflicting UIDs or GIDs.

This should solve the nasty issues caused by #16 (sorry 😅). I trashed a disposable VM to test this.

Complete overhaul of `remap_user.yml`. Instead of checking only for the existence of the `galaxy` user and group, it will now go over all users and groups defined in `handy_users` and `handy_groups` and remap any existing users or groups with conflicting UIDs or GIDs.
@kysrpex kysrpex added the bug Something isn't working label Dec 6, 2023
@kysrpex kysrpex self-assigned this Dec 6, 2023
@mira-miracoli
Copy link
Contributor

What was the issue again with the OS major version separated remap_user.py?
(how it was before #16 )

@kysrpex
Copy link
Contributor Author

kysrpex commented Dec 8, 2023

What was the issue again with the OS major version separated remap_user.py? (how it was before #16 )

I wrote this in #16

The tasks for CentOS 8 do not work with other operating system releases, while the tasks for RHEL 9 are more general and should work across operating system versions.

but I think I need to explain it further. Let's move the discussion to that PR as this PR is unrelated to this change.

@kysrpex
Copy link
Contributor Author

kysrpex commented Dec 8, 2023

To any reviewer: reading this will help you make sense of this PR.

@kysrpex kysrpex requested review from bgruening and removed request for sanjaysrikakulam December 11, 2023 08:15
@kysrpex
Copy link
Contributor Author

kysrpex commented Dec 11, 2023

Can anybody have a look at this? Remember that since #16, we have the mq host filling up the disk with logs sometimes (although rarely).

@mira-miracoli
Copy link
Contributor

Would tomorrow be good enough?

@kysrpex
Copy link
Contributor Author

kysrpex commented Dec 11, 2023

Would tomorrow be good enough?

Sure!

Copy link
Contributor

@mira-miracoli mira-miracoli left a comment

Choose a reason for hiding this comment

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

Very impressive! 🚀

roles/os_setup/files/remap_user.py Outdated Show resolved Hide resolved
roles/os_setup/tasks/remap_user.yml Outdated Show resolved Hide resolved
…to a more detailed example

Extend the comments in remap_user.yml with a brief example describing the purpose of the tasks in "remap_user.yml" and a pointer to the much more detailed example located in roles/os_setup/files/remap_user.py.
@kysrpex kysrpex requested a review from bgruening December 12, 2023 11:34
@kysrpex kysrpex merged commit 01fc46a into usegalaxy-eu:main Dec 12, 2023
1 check passed
@kysrpex kysrpex deleted the remap_user_enhancement branch December 12, 2023 13:14
kysrpex added a commit to kysrpex/usegalaxy-eu-ansible-collection-handy that referenced this pull request Dec 12, 2023
The only changes since the last release are those introduced by usegalaxy-eu#18.

According to https://semver.org/spec/v2.0.0.html:

- "6. Patch version Z (x.y.Z | x > 0) MUST be incremented if only backward compatible bug fixes are introduced. A bug fix is defined as an internal change that fixes incorrect behavior."
- "7. Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backward compatible functionality is introduced to the public API. [...] It MAY be incremented if substantial new functionality or improvements are introduced within the private code."
- "8. Major version X (X.y.z | X > 0) MUST be incremented if any backward incompatible changes are introduced to the public API."

PR usegalaxy-eu#18 qualifies both as "substantial new functionality or improvements are introduced within the private code" and "backward compatible bug fixes", thus I am increasing the minor version number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants