]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ssh/manifests/init.pp
gabrielli: decomission
[dsa-puppet.git] / modules / ssh / manifests / init.pp
index db6130199873f360864db12bed2043752e12e2c7..d86093ef347e658258c5861f266af8de9c2966e8 100644 (file)
@@ -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
                        }
                }
        }