Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2162

yumrepo gpgkey and baseurl with multiple URLs broken in 3.5.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • PUP 3.5.0
    • PUP 3.5.1
    • Types and Providers
    • Scientific Linux 6.5, CentOS 6.5.

    • 1
    • Week 2014-4-09 to 2014-4-16

    Description

      My yumrepo configuration has been working for months. After the update last night to 3.5.0 all my Scientific/Centos hosts are broken and fail to complete their puppet run. It seems they don't like the multiple options for gpgkeys. If I only include one, then it works (and then I hit another reported bug about the proxy). I am still researching what changed but haven't found anything that jumps out at me yet that is related to gpgkeys.

      My yumrepo config:

      yumrepo { "SL6":
                      descr => "Scientific Linux $release - ${::architecture}",
                      baseurl => "http://${reponetwork}/scientificlinux/$release/${::architecture}/os/",
                      enabled => 1,
                      enablegroups => 1,
                      gpgcheck => 1,
                      priority => 1,
                      gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl$release file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern",
                      proxy => "_none_",
              }
      

      The error:

      Error: Failed to apply catalog: Parameter gpgkey failed on Yumrepo[SL6]: Validate method failed for class gpgkey: bad URI(is not URI?): file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern at /etc/puppet/modules/repos/manifests/scientific.pp:19
      Wrapped exception:
      Validate method failed for class gpgkey: bad URI(is not URI?): file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
      

      Any help would be greatly appreciated.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cstackpole Chris Stackpole
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support