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

Provider dnfmodule prompts user to trust gpg key when performing module list #9224

Closed
loopiv opened this issue Jan 26, 2024 · 1 comment
Closed
Labels
bug Something isn't working triaged Jira issue has been created for this

Comments

@loopiv
Copy link
Contributor

loopiv commented Jan 26, 2024

Describe the Bug

When using the 'dnfmodule' provider, the following command is run: "/usr/bin/dnf module list -d 0 -e 1". Because dnf module does not seem to use rpm imported gpg keys, the system prompts to trust the key.

Expected Behavior

A puppet run should not fail due to a prompt for trusting the gpg key. Perhaps adding the option "--assumeyes" or "-y" is needed.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install the REMI PHP repository on an Enterprise Linux v8 system - https://blog.remirepo.net/pages/Config-en.
  2. Configure the version of php to use
package {'php-module':
  name     => 'php',
  ensure   => "remi-8.1",
  provider => dnfmodule,
  require  => Package['remi-release'],
}
  1. A puppet run on client fails due to a prompt to trust the remi gpg key. Note that importing beforehand, E.g., rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi* does not help with the initial dnf module list.

Environment

  • Version = 7.28.0
  • Platform = Oracle Linux v8
@loopiv loopiv added the bug Something isn't working label Jan 26, 2024
@joshcooper joshcooper added the triaged Jira issue has been created for this label Jan 30, 2024
Copy link

Migrated issue to PUP-12021

joshcooper added a commit that referenced this issue Mar 2, 2024
[Backport 7.x] Fixes #9224: Add assumeyes option to dnf module list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Jira issue has been created for this
Projects
None yet
Development

No branches or pull requests

2 participants