Add boott
[mirror/dsa-puppet.git] / modules / ssh / manifests / init.pp
index db61301..d86093e 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
                        }
                }
        }