Skip to content

Commit

Permalink
install::client::debian: Handle non-amd64 installations
Browse files Browse the repository at this point in the history
Tested on amd64 and arm64.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
  • Loading branch information
flichtenheld committed Sep 25, 2024
1 parent f60c489 commit 832ff5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/install/client/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
enable => true,
name => 'oddjobd',
}
$mkhomedir_line = "session optional /lib/x86_64-linux-gnu/security/pam_oddjob_mkhomedir.so"
$arch = $facts['os']['hardware']
$mkhomedir_line = "session optional /lib/${arch}-linux-gnu/security/pam_oddjob_mkhomedir.so"
$notify = Service['oddjobd']

file_line { 'mkhomedir':
Expand Down

0 comments on commit 832ff5b

Please sign in to comment.