allow ecdsa-sha2-nistp256 hostkeys

This commit is contained in:
Florian Faltermeier 2016-06-07 09:15:06 +02:00
parent bfb085888b
commit a7a15c203e
2 changed files with 5 additions and 2 deletions

View File

@ -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'

View File

@ -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}>.")
}
}