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

Have dnf_package support modular/appstream installs #9220

Open
erinn opened this issue Jan 15, 2020 · 5 comments
Open

Have dnf_package support modular/appstream installs #9220

erinn opened this issue Jan 15, 2020 · 5 comments
Labels

Comments

@erinn
Copy link

@erinn erinn commented Jan 15, 2020

Describe the Enhancement:

I'd like to see the dnf_package resource support modules/appstreams for RHEL 8+ and fedora

Describe the Need:

Well modules/appstreams solve a large need for users who want to use RHEL/fedora but want most things stable and a few things changed to a newer version. A good example here is PHP, if you just use the built in version of PHP in RHEL you are locked into the stone age pretty quickly. modules/appstreams solve this by allowing newer versions (supported by RHEL if you pay them) of PHP to be installed.

Current Alternative

execute I supose: execute 'yum -y module install php:7.3/devel' etc.

Can We Help You Implement This?:

Well yes you can.

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

@lamont-granquist lamont-granquist commented Jan 15, 2020

Have you tried dnf_package "php:7.3/devel" and what does that do? (and what relevant logging comes out if you use -l trace)?

@erinn

This comment has been minimized.

Copy link
Author

@erinn erinn commented Jan 16, 2020

Well with just dnf_package "php:7.3/devel" you get this: No candidate version available for php:7.3/devel

Abusing options like so:
dnf_package "php:7.3/devel" do
options 'module'
end
Creates the command:
dnf module -y install php:7.3/devel
Which looks a little funny but will actually work from the CLI, chef outputs the same result. My suspicion, uninvestigated at this point, is that the python helper is catching this issue. But this is based off of my knowledge of yum_package, dnf_package may be entirely different.

I also have to warn that this is being tested on chef infra 14, because of the licensing changes I can't test on chef infra 15.

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

@lamont-granquist lamont-granquist commented Jan 16, 2020

ah i see i missed the module bit of yum module install

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

@lamont-granquist lamont-granquist commented Jan 16, 2020

and yeah this would take surgery to the python helper to know anything about modules

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

@lamont-granquist lamont-granquist commented Jan 24, 2020

this should probably be considered blocked on #9013 since any work done to the dnf_package provider to support additional features will only make doing that work exponentially harder.

@tas50 tas50 added Type: Bug and removed Status: Untriaged labels Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.