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

puppet describe -s ssh_authorized_key output is really bad

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.8.1, PUP 4.2.0
    • Fix Version/s: PUP 4.6.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      puppet describe -s ssh_authorized_key should not output garbage.

      Show
      puppet describe -s ssh_authorized_key should not output garbage.
    • Epic Link:
    • Story Points:
      1
    • Sprint:
      Language 2016-06-01, Language 2016-06-15
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      The command puppet describe -s ssh_authorized_key
      produced garbage output because of long lines of text.
      Show
      The command puppet describe -s ssh_authorized_key produced garbage output because of long lines of text.

      Description

      root@master:~ # puppet describe -s ssh_authorized_key
       
      ssh_authorized_key
      ==================
      Manages SSH authorized keys. Currently only type 2 keys are supported.
      In their native habitat, SSH keys usually appear as a single long line. This
      resource type requires you to split that line into several attributes. Thus,
      a
      key that appears in your `~/.ssh/id_rsa.pub` file like this...
          ssh-rsa
      ...would translate to the following resource:
      ...would translate to the following resource:
      ...would translate to the following resource:
      ...would translate to the following resource:
      ...would translate to the following resource:
      ...would translate to the following resource:
      ...would translate to the following resource:
      eMue6b3FtUdTDeyAYoTxrsRo/WnDkS6Pa3YhrFwjtUqXfdaQ==
      nick@magpie.puppetlabs.lan
      ...would translate to the following resource:
          ssh_authorized_key { 'nick@magpie.puppetlabs.lan':
            user => 'nick',
            type => 'ssh-rsa',
            key  =>
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
          }
      BmuvPF1Mn3FwaFLjVsMT3GQeMue6b3FtUdTDeyAYoTxrsRo/WnDkS6Pa3YhrFwjtUqXfdaQ==',
          }
      To ensure that only the currently approved keys are present, you can purge
      unmanaged SSH keys on a per-user basis. Do this with the `user` resource
      type's `purge_ssh_keys` attribute:
          user { 'nick':
            ensure         => present,
            purge_ssh_keys => true,
          }
      This will remove any keys in `~/.ssh/authorized_keys` that aren't being
      managed with `ssh_authorized_key` resources. See the documentation of the
      `user` type for more details.
      **Autorequires:** If Puppet is managing the user account in which this
      SSH key should be installed, the `ssh_authorized_key` resource will
      autorequire
      that user.
       
       
      Parameters
      ----------
          ensure, key, name, options, target, type, user
       
      Providers
      ---------
          parsed
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ben.ford Ben Ford
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support