X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Fmanifests%2Finit.pp;h=fc576f82fc7dc0a920862314de4fcbc443e827d5;hb=6f2e5fc86e49c12b12eef39fc69e0e810a32c318;hp=db6130199873f360864db12bed2043752e12e2c7;hpb=2962d317313499eb88e8496fa672bf217f1bca2f;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/manifests/init.pp b/modules/ssh/manifests/init.pp index db6130199..fc576f82f 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -37,11 +37,16 @@ class ssh { content => template('ssh/authorized_keys.erb'), } - if ($::lsbmajdistrelease >= 8) { + 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', - onlyif => '! [ -e /etc/ssh/ssh_host_ed25519_key ]' + } + } + + if $systemd { + package { [ 'libpam-systemd' ]: + ensure => installed } } }