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

User {purge_ssh_keys => true, } not removing all keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Information
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sshkeys_core
    • Labels:
    • Environment:

      Centos 7.3

    • Template:
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      If you create 2 users.
      ex test1 and test2

        user { $user:
            home             => "/home/${user}",
            managehome       => true,
            purge_ssh_keys   => true,
            ensure           => "present",
          }
      

      And then add 1 key to each

          ssh_authorized_key { $user:
            ensure => present,
            key    => $key,
            user   => $user,
          }
      

      then you on the client machine, manual edit your authorized_keys and copy the entire line from test1 user to test2 users authorized_keys, that line will not be delete on next puppet run

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              newbenji Benjamin Andersen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support