diff --git a/manifests/hostkeys.pp b/manifests/hostkeys.pp index 136e565dd..7ea3596f3 100644 --- a/manifests/hostkeys.pp +++ b/manifests/hostkeys.pp @@ -12,4 +12,11 @@ type => rsa, key => $::sshrsakey, } + if $::sshecdsakey { + @@sshkey { "${::fqdn}_ecdsa": + host_aliases => $host_aliases, + type => 'ecdsa-sha2-nistp256', + key => $::sshecdsakey, + } + } }