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
pkg.installed should support kwargs for setting --setopt #46212
Comments
The https://github.com/saltstack/salt/blob/develop/salt/modules/yumpkg.py#L277-L300 Unfortunately, this helper function isn't used for Maybe it could be added here ? |
@terminalmage Thoughts on this being added to |
It looks like setopt is something that can be set more than once, right? |
Yes, I confirmed that's the case. I've opened #46263 |
The usage here would be: docker-ce_pkgs:
pkg.installed:
- pkgs:
- docker-ce-selinux: 17.03.2.ce-1.el7.centos
- docker-ce: 17.03.2.ce-1.el7.centos
- hold: true
- update_holds: true
- setopt:
- obsoletes=0 |
running into the same issue. Is there a way i can stil pass obsoletes=0 in old salt versions? if no, Is using yum directly is my only option in old salt version? |
that's what we ended up doing
|
The docs on dynamic module distribution are helpful here. :) |
maybe I'm missing the link, could you elaborate @rallytime ? thanks! |
By copying a patched salt/modules/yumpkg.py to You just need to remember to remove this file from |
Awesome, thanks for the explaination! |
No problem! Keep in mind though that the patch may not apply cleanly to earlier Salt releases, and users are on their own when it comes to using this method to distribute patched salt modules to minions. This method of distirbuting modules is intended primarily for distributing custom salt states/modules/etc. that users write for their own internal usage. It just has the added benefit of superseding existing modules, which makes it handy for these sort of use cases. |
understood, a override switch that can break :)
…On Fri, Mar 16, 2018 at 10:19 AM, Erik Johnson ***@***.***> wrote:
No problem! Keep in mind though that the patch may not apply cleanly to
earlier Salt releases, and users are on their own when it comes to using
this method to distribute patched salt modules to minions. This method of
distirbuting modules is intended primarily for distributing custom salt
states/modules/etc. that users write for their own internal usage. It just
has the added benefit of superseding existing modules, which makes it handy
for these sort of use cases.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#46212 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEwEKt6k5w5KrT7TN2lo_BSMAZn1oARZks5te8oDgaJpZM4SVBIr>
.
|
Indeed 😄 |
Hi, is this feature implemented in version 3004? Nothing in the documentation and doesn't seems to work, or at least no effect if the option is present.
|
Yes, this pull request is in 3004. |
Thanks for the confirmation. But still, it doesn't seems to work. I tried to use edit: my bad, it seems the issue is with the package mlnx-ofed-all trying to replace pcp-pmda-infiniband. Sorry for the noise. |
Description of Issue/Question
We need to enable the
--setopt=obsoletes=0
option for yum to allow installing Docker using Saltmoby/moby#33930
Setup
Steps to Reproduce Issue
Versions Report
The text was updated successfully, but these errors were encountered: