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

The ssh_authorized_key resource should trim trailing newlines

    Details

    • Template:
    • Team:
      Platform OS

      Description

      The "Key must not contain whitespace" error is incredibly frustrating. Puppet should just remove trailing newlines from the key parameter because when you go to replace the keys in Hiera vim helpfully adds a new line character.

      A really gross work-around is to do this:

      key    => regsubst(hiera('ssh_key'), '\n$', '');
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                blkperl William Van Hevelingen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support