Allow to specify different key types

Allow to specify different key types for ed25519, for example

Depends-On: Ie842b25d38541e85cebfc0d11043aec836980173
Change-Id: I2a625c4dbb72f3ae1f9644636d635033be817465
This commit is contained in:
Ian Wienand 2016-07-14 11:31:20 +10:00
parent 5af6eab252
commit 1cfbbf5acd

View File

@ -10,6 +10,7 @@ define user::virtual::localuser(
$groups = [ 'sudo', 'admin', ],
$home = "/home/${title}",
$key_id = $title,
$key_type = 'ssh-rsa',
$managehome = true,
$old_keys = [],
$shell = '/bin/bash',
@ -55,7 +56,7 @@ define user::virtual::localuser(
ensure => present,
key => $sshkeys,
user => $title,
type => 'ssh-rsa',
type => $key_type,
require => File[ "${home}/.ssh" ],
}