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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • puppet_agent 1.3.2
    • puppet_agent 1.4.0
    • puppet_agent
    • None
    • Dumpling
    • Not Needed
    • On RedHat systems, the GPG keys will no longer be re-imported every run.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support