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

user purge_ssh_keys not purged

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: PUP 3.6.0
    • Fix Version/s: PUP 3.6.2
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:

      Ubuntu 12.04

    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2014-6-4 to 2014-6-11

      Description

      I'm using Puppet 3.6.0 on Ubuntu 12.04 and I'm trying to purge unmanaged ssh authorized keys.

      I've added this code to my manifest:

      user { 'ubuntu': 
        purge_ssh_keys => true, 
        home => '/home/ubuntu', 
      }
      

      However, no keys are purged. I do see the following lines in the agent debug output:

      Debug: /Stage[main]/Role::Search/Ssh_authorized_key[key2purge1]: Nothing to manage: no ensure and the resource doesn't exist
      Debug: /Stage[main]/Role::Search/Ssh_authorized_key[key2purge2]: Nothing to manage: no ensure and the resource doesn't exist
      

      Those are the two keys that I expect would be purged. It appears that puppet has correctly identified the keys to purge, and created resources for them, but did not ensure => absent.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kylo Kylo Ginsberg
                Reporter:
                doolli_doug Doug Byrne
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support