-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
copr: add includepkgs functionality #8779
copr: add includepkgs functionality #8779
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@ansibullbot ready_for_review |
Thank you for the contribution! Please add a changelog fragment. I will be taking a closer look throughout the day. |
thanks for reply @russoz |
Perhaps also excludepkgs for completeness? |
Hi @shubhamsugara22 not sure you noticed this comment from @ossman . It does make sense to have both, IMO. Would you be willing to add that one here as well? It should be fairly easy now that you're more familiar with it. 😉 |
LGTM! :-) Thanks @shubhamsugara22 !! |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8808 🤖 @patchback |
* Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Added changes in copr module * Excludepkgs parameter add * Update module and params to handle a list + Docs updated * Update module and params to handle a list + Docs updated (cherry picked from commit 96d5e6e)
@shubhamsugara22 thanks for your contribution! |
…ality (#8808) copr: add includepkgs functionality (#8779) * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Added changes in copr module * Excludepkgs parameter add * Update module and params to handle a list + Docs updated * Update module and params to handle a list + Docs updated (cherry picked from commit 96d5e6e) Co-authored-by: Shubham Singh Sugara <[email protected]>
* Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Added changes in copr module * Excludepkgs parameter add * Update module and params to handle a list + Docs updated * Update module and params to handle a list + Docs updated
* Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Limit package for Copr using includepkgs * Added changes in copr module * Excludepkgs parameter add * Update module and params to handle a list + Docs updated * Update module and params to handle a list + Docs updated
SUMMARY
A new includepkgs parameter has been added to the copr module, allowing users to specify which packages to fetch from a COPR repository. This enhancement addresses the issue where users only want to install specific packages without inadvertently pulling in other packages from the repository. The includepkgs option is added to the repository configuration and persists across Ansible runs, ensuring that the repository remains consistent with the user’s desired package selection.
Fixes
#8738
ISSUE TYPE
COMPONENT NAME
copr
ADDITIONAL INFORMATION
The new includepkgs parameter allows users to limit the scope of packages fetched from a COPR repository. This feature is particularly useful for users who need to manage their package installations tightly and avoid any unexpected changes from updates to the repository. The implementation includes appending the includepkgs option to the repository file and ensuring that it is not overwritten by subsequent Ansible runs.