X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Fmanifests%2Finit.pp;h=d86093ef347e658258c5861f266af8de9c2966e8;hb=d2d718d6312d6d8902c7974e2ab3769c979e09fd;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..d86093ef3 100644 --- a/modules/ssh/manifests/init.pp +++ b/modules/ssh/manifests/init.pp @@ -41,7 +41,12 @@ class ssh { 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 } } }