From e100afe4ecb84f64f685e63f5a16aa988bf6adc9 Mon Sep 17 00:00:00 2001 From: Helen Griffiths Date: Tue, 7 Aug 2018 16:32:53 +0100 Subject: [PATCH] add support for ed25519 keys Pull request ghoneycutt#282 --- manifests/init.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 8e023083..7cbd27d8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -958,10 +958,13 @@ $key = $::sshdsakey } 'ecdsa-sha2-nistp256': { - $key = $::sshecdsakey + $key = $::sshecdsakey + } + 'ssh-ed25519': { + $key = $::sshed25519key } default: { - fail("ssh::ssh_key_type must be 'ecdsa-sha2-nistp256', 'ssh-rsa', 'rsa', 'ssh-dsa', or 'dsa' and is <${ssh_key_type}>.") + fail("ssh::ssh_key_type must be 'ecdsa-sha2-nistp256', 'ssh-ed25519', 'ssh-rsa', 'rsa', 'ssh-dsa', or 'dsa' and is <${ssh_key_type}>.") } }