X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fssh%2Fmanifests%2Finit.pp;h=56537e43d2aa785fe2c254316f29426deefc550f;hb=75a47136ac8063fe8c340ca005ef2ba84c2595e7;hp=0824f0f892a6563f16897cb06cc7c4b72829a382;hpb=99d17dd3c2fde65d205334b33cae26500a981a31;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index 0824f0f89..56537e43d 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -36,4 +36,18 @@ class ssh { file { '/etc/ssh/userkeys/root': content => template('ssh/authorized_keys.erb'), } + + if (versioncmp($::lsbmajdistrelease, '8') >= 0) { + 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', + } + } + + if $systemd { + package { [ 'libpam-systemd' ]: + ensure => installed + } + } + } }