Skip to content

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

Closed
@loopiv

Description

@loopiv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedJira issue has been created for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions