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

Yumrepo typos break yumrepo function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
    • Environment:

      Redhat/Yum systems

    • Template:

      Description

      Recently, Rackspace had a typo in their /etc/yum.repos.d/CentOS-Base.repo file:

      # CentOS-Base.repo
      #
      # The mirror system uses the connecting IP address of the client and the
      # update status of each mirror to pick mirrors that are updated to and
      # geographically close to the client.  You should use this for CentOS updates
      # unless you are manually picking other mirrors.
      #
      ## If the mirrorlist= does not work for you, as a fall back you can try the
      remarked out baseurl= line instead.
      #
      #
      

      It would then fail with the following error:

      /Stage[main]/Yumrepo[epel]: Could not evaluate: /etc/yum.repos.d/CentOS-Base.repo:9: Can't parse 'remarked out baseurl= line instead.'
      

      Surprisingly, this typo doesn't break yum, only anything that needs to parse it (I think someone said Pulp is similarly affected).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                petems Peter Souter
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support