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:
parent
5af6eab252
commit
1cfbbf5acd
@ -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" ],
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user