Closed
Description
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:
- Install the REMI PHP repository on an Enterprise Linux v8 system - https://blog.remirepo.net/pages/Config-en.
- Configure the version of php to use
package {'php-module':
name => 'php',
ensure => "remi-8.1",
provider => dnfmodule,
require => Package['remi-release'],
}
- 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