-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
puppet agent not working with dnf5 #9506
Comments
I stumbled upon this, too. My workaround at the moment is
But that's not something I want to apply to a whole fleet of managed machines, especially as |
Hi @xxjack12xx, thank you for reporting this issue! While we agree this is likely a bug, we do not anticipate addressing this any time soon due to other issues demanding precedence. However, this is on the team's radar. |
FYI, |
The switches can be found in |
Here is some example code that triggers the problem:
And the error:
|
This is for the |
Found the real culprit: # Yum on el-4 and el-5 returns exit status 0 when trying to install a package it doesn't recognize;
# ensure we capture output to check for errors.
no_debug = Puppet.runtime[:facter].value('os.release.major').to_i > 5 ? ["-d", "0"] : []
command = [command(:cmd)] + no_debug + ["-e", error_level, "-y", install_options, operation, wanted].compact
output = execute(command) |
puppet agent does not support dnf5 which is the current package manager in Fedora 41.
When having puppet install a package, the following error occurs:
Package[rsync-daemon]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install rsync-daemon' returned 2: Unknown argument "-d" for command "dnf5". Add "--help" for more information about the arguments. (corrective)
The text was updated successfully, but these errors were encountered: