Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-4478

[puppet_agent] Reimports GPG key every run on some RedHat systems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: puppet_agent 1.3.2
    • Fix Version/s: puppet_agent 1.4.0
    • Component/s: puppet_agent
    • Labels:
      None
    • Template:
    • Team:
      Dumpling
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      On RedHat systems, the GPG keys will no longer be re-imported every run.
    • QA Risk Assessment:
      Needs Assessment

      Description

      On Redhat family systems, the GPG keys get imported every run since the exec call is returning false.

      The fix appears to be ensure upper and lower are wrapped around single quotes to prevent expansion.

      echo "ABCDEFG" | tr [:upper:] [:lower:]
      tr: misaligned [:upper:] and/or [:lower:] construct
      

      echo "ABCDEFG" | tr '[:upper:]' '[:lower:]'
      abcdefg
      

      rpm -q gpg-pubkey-`echo $(gpg --throw-keyids < /etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs) | cut --characters=11-18 | tr [:upper:] [:lower:] tr: misaligned [:upper:] and/or [:lower:] construct
      package gpg-pubkey- is not installed
      

      rpm -q gpg-pubkey-`echo $(gpg --throw-keyids < /etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs) | cut --characters=11-18 | tr '[:upper:]' '[:lower:]'`
      gpg-pubkey-4bd6ec30-4c37bb40
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            michael.smith Michael Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support