Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created October 21, 2013 17:44
Show Gist options
  • Save scottslowe/7087907 to your computer and use it in GitHub Desktop.
Save scottslowe/7087907 to your computer and use it in GitHub Desktop.
When used in conjunction with an appropriate define-based virtual resource (see gist named "defined-virt-user-ssh-key"), this will define a user including their public SSH key.
@accounts::virtual { 'jsmith':
uid => 5001,
realname => 'John Smith',
pass => '<insert password hash here>',
sshkeytype => 'ssh-dss',
sshkey => '<insert SSH key here>',
require => Class['accounts::config'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment