voxpupuli / puppet-gitlab

Puppet module to manage Gitlab (Omnibus)
https://forge.puppet.com/puppet/gitlab/
BSD 3-Clause "New" or "Revised" License
74 stars 164 forks source link

repo_gpgcheck fails #401

Closed silug closed 2 years ago

silug commented 2 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

include gitlab

What are you seeing

Package operations in Puppet fail with

Error: Failed to download metadata for repo 'gitlab_official_ce': repomd.xml GPG signature verification error: Bad GPG signature

What behaviour did you expect instead

No such errors.

Any additional information you'd like to impart

This appears to be an upstream repo issue and may not be appropriate to "fix" in this module.

Workaround in hiera:

---
lookup_options:
  gitlab::repository_configuration:
    merge:
      strategy: deep

gitlab::repository_configuration:
  yumrepo:
    "gitlab_official_ce":
      repo_gpgcheck: 0
    "gitlab_official_ee":
      repo_gpgcheck: 0
silug commented 2 years ago

This appears to have been an upstream issue and can be "fixed" with rm -rf /var/cache/dnf/runner_gitlab-runner-* (or the longer process described here: https://forum.gitlab.com/t/error-on-update-rhel8-repomd-xml-gpg-signature/66498/2)