X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Fmanifests%2Finit.pp;h=8e61da64c8bc6109a47950295b6be7803614bd7e;hb=01c3a799eaa0ce9e9a465c78da4b2897a49db934;hp=0824f0f892a6563f16897cb06cc7c4b72829a382;hpb=96d02de0e841b2a067dba244d62562cd46d4035b;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index 0824f0f89..8e61da64c 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -36,4 +36,12 @@ class ssh { file { '/etc/ssh/userkeys/root': content => template('ssh/authorized_keys.erb'), } + + if ($::lsbmajdistrelease >= 8) { + if ! $has_etc_ssh_ssh_host_ed25519_key { + exec { 'create-ed25519-host-key': + command => 'ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -q -P "" -t ed25519', + } + } + } }