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
}
}
}