Skip to content

Commit e100afe

Browse files
threepistons9oOzv
authored andcommitted
add support for ed25519 keys
Pull request ghoneycutt#282
1 parent 3b809ef commit e100afe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

manifests/init.pp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,10 +958,13 @@
958958
$key = $::sshdsakey
959959
}
960960
'ecdsa-sha2-nistp256': {
961-
$key = $::sshecdsakey
961+
$key = $::sshecdsakey
962+
}
963+
'ssh-ed25519': {
964+
$key = $::sshed25519key
962965
}
963966
default: {
964-
fail("ssh::ssh_key_type must be 'ecdsa-sha2-nistp256', 'ssh-rsa', 'rsa', 'ssh-dsa', or 'dsa' and is <${ssh_key_type}>.")
967+
fail("ssh::ssh_key_type must be 'ecdsa-sha2-nistp256', 'ssh-ed25519', 'ssh-rsa', 'rsa', 'ssh-dsa', or 'dsa' and is <${ssh_key_type}>.")
965968
}
966969
}
967970

0 commit comments

Comments
 (0)