Install libpam-systemd on systemd hosts
authorPeter Palfrader <peter@palfrader.org>
Thu, 17 Sep 2015 15:54:51 +0000 (17:54 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 17 Sep 2015 15:54:51 +0000 (17:54 +0200)
modules/ssh/manifests/init.pp

index 8e61da6..d86093e 100644 (file)
@@ -43,5 +43,11 @@ class ssh {
                                command => 'ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -q -P "" -t ed25519',
                        }
                }
+
+               if $systemd {
+                       package { [ 'libpam-systemd' ]:
+                               ensure => installed
+                       }
+               }
        }
 }