diff --git a/README.md b/README.md index 1875739..8150ab4 100644 --- a/README.md +++ b/README.md @@ -624,7 +624,7 @@ Import all exported node SSH keys. Valid values are 'true' and 'false'. ssh_key_type ------------ -Encryption type for SSH key. Valid values are 'rsa', 'dsa', 'ssh-dss' and 'ssh-rsa' +Encryption type for SSH key. Valid values are 'ecdsa-sha2-nistp256', 'rsa', 'dsa', 'ssh-dss' and 'ssh-rsa' - *Default*: 'ssh-rsa' diff --git a/manifests/init.pp b/manifests/init.pp index 8627d26..55aa04c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -620,8 +620,11 @@ class ssh ( 'ssh-dsa','dsa': { $key = $::sshdsakey } + 'ecdsa-sha2-nistp256': { + $key = $::sshecdsakey + } default: { - fail("ssh::ssh_key_type must be 'ssh-rsa', 'rsa', 'ssh-dsa', or 'dsa' and is <${ssh_key_type}>.") + fail("ssh::ssh_key_type must be 'ecdsa-sha2-nistp256', 'ssh-rsa', 'rsa', 'ssh-dsa', or 'dsa' and is <${ssh_key_type}>.") } }