-
-
Notifications
You must be signed in to change notification settings - Fork 100
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 dnf module management - Fix #310 #320
Conversation
Double checked everything. I'm comfortable to have it reviewed |
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.
looks good to me. I will wait a few days so others can review as well.
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.
What does this do that the package dnfmodule
provider doesn't do?
package { 'idm':
ensure => 'DL1',
provider => 'dnfmodule',
}
https://github.com/puppetlabs/puppet/blob/main/lib/puppet/provider/package/dnfmodule.rb
@jhoblitt Thanks for taking some time to review. package
|
Could you provide a specific example in puppet code which does not work with the |
@EmersonPrado can you add your explanation to the README.md? |
@jhoblitt I'll do as @bastelfreak suggested. This might answer your questions, and the quite likely same ones from other people. |
@jhoblitt About this other question: "Are you stating that Puppet By Perforce has decided to depreciate the the dnfmodule provider?":
|
@EmersonPrado please update the REFERENCE.md with |
@bastelfreak Done. Still some errors, but I guess they're unrelated to the PR. |
No, the |
Is there any change of this PR being merged? This looks like the perfect solution for a problem managing appstream modules I'm having... |
@Xazziri the failing tests need to be fixed before we can merge this. |
The previous state of these tests were some failure apparently not related to the changes, but now there seems to be quite more failures than before. Unfortunately, now the tests just say "The logs for this run have expired and are no longer available". Guess I need to provoke another run to get current status. |
@bastelfreak Good news! Guess someone fixed something upstream, and the tests now pass! |
@EmersonPrado thanks for the work! Can you please rebase and remove commit 5553062 and 023df41? |
Done! |
Pull Request (PR) description
This PR adds a custom resource to freely enable/disable streams in DNF modules. The provider supports 4 different stream spec formats:
:default
- Enables default stream:present
- Enables default stream if no stream is enabled, otherwise keep currently enabled one:absent
- Disables current enabled stream, if any (that is: resets the module)<String>
- Enables specified streamThis Pull Request (PR) fixes the following issues
Fixes #310
WIP: though it passes the very limited spec tests and my manual tests, I pushed this in a hurry. Need to review later without tired eyes.