Skip to content

Commit 1723b14

Browse files
committed
PARTIAL Fix directory service configuiration for Rocky
1 parent 65c1b4e commit 1723b14

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cookbooks/aws-parallelcluster-environment/resources/system_authentication/system_authentication_rocky8.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
user 'root'
2929
# Tell NSS, PAM to use SSSD for system authentication and identity information
3030
# authconfig is a compatibility tool, replaced by authselect
31-
command "authselect select sssd with-mkhomedir"
31+
command "authselect select sssd with-mkhomedir --force"
3232
sensitive true
3333
default_env true
3434
end

cookbooks/aws-parallelcluster-environment/spec/unit/resources/system_authentication_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def self.configure(chef_run)
6060
'authconfig --enablemkhomedir --enablesssdauth --enablesssd --updateall'
6161
when 'ubuntu'
6262
'pam-auth-update --enable mkhomedir'
63+
when 'rocky'
64+
'pam-auth-update --enable mkhomedir --force'
6365
else
6466
'authselect select sssd with-mkhomedir'
6567
end

0 commit comments

Comments
 (0)