yum_repository is not importing gpg keys as stated in the documentation #8654
In the documentation, it is stated that for the yum_repository provider gpgkey option, that "If this option is set, Yum will automatically import the key from the specified URL."
Investigation shows that this is not the case and I cannot find evidence that Chef is downloading GPG keys in the source code.
Minimal Chef recipe:
Checking the imported rpm keys afterwards will not show the gpg keys added to the system.
Reproduced in CentOS on Vagrant, and in a 'real' server running RHEL. Both version 7.6.