Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create etcd home directory (#158) #159

Closed
wants to merge 1 commit into from

Conversation

aceeric
Copy link
Contributor

@aceeric aceeric commented Sep 25, 2023

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

As part of the CIS hardening tasks, when /home is an NFS volume and root squashing is enabled, and Ansible (as root) tries to mkdir /home/etcd it results in an OS error. If the person installer doesn't have the ability to change this NFS configuration on the underlying hosts then the installation fails.

This PR omits creation of the home directory for the etcd user.

Which issue(s) this PR fixes:

Closes #158

Special notes for your reviewer:

N/A

Testing

Tested the change with /home both as an NFS mount with root squashing and also as a local directory.

Release Notes

Omit creation of the etcd home directory as part of CIS hardening in case /home is an NFS mount with root squashing enabled.

@Daemonslayer2048 Daemonslayer2048 mentioned this pull request Oct 2, 2023
4 tasks
@mddamato mddamato closed this Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CIS Hardening and NFS root squashing
2 participants