Skip to content

Does Not Ensure the ~/.ssh Exists #1

@mankyd

Description

@mankyd

I tried using this after pulling it off of Puppet Forge. I tried installing my public key on a new virtual machine and received an error to this effect:

err: /Stage[main]//Node[test.localdomain]/Ssh::Authorized_keys[dave]/File[/home/dave/.ssh/authorized_keys]/ensure: change from absent to present failed: Could not set 'present on ensure: No such file or directory - /home/dave/.ssh/authorized_keys.puppettmp_558 at /etc/puppetlabs/puppet/modules/ssh/manifests/init.pp:141

It looks like there is no .ssh folder on my remote machine maybe? The actual configuration I am using is:

node 'test.localdomain' {
  ssh::authorized_keys { 'dave':
    users => ['dave']
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions