Skip to content

Commit

Permalink
Fix issue with Rocky 9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Oct 17, 2024
1 parent 75e292e commit b2e1ab3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/configuration/puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ users:
%{ endfor ~}

runcmd:
- chmod 755 /etc # avoid issue with Rocky 9.4
- test ! -d /${sudoer_username} && userdel -f -r ${sudoer_username} && cloud-init clean -r
- restorecon -R /${sudoer_username}
- echo -e "match User tf\n\tAuthorizedKeysFile /etc/ssh/authorized_keys.%u\n\tAuthenticationMethods publickey" >> /etc/ssh/sshd_config
Expand Down

0 comments on commit b2e1ab3

Please sign in to comment.