Skip to content

Conversation

@mhumeSF
Copy link

@mhumeSF mhumeSF commented Nov 11, 2025

Skip creating the home folder for consul user

SUMMARY

System users don't need home directories since they won't be logging in interactively. This change adds create_home: false to the Consul user creation task to prevent unnecessary home directory creation, following best practices for system service accounts.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

consul_user (user creation task)

ADDITIONAL INFORMATION

System users are created with system: true and are intended to run services rather than support interactive login sessions. Creating a home director is unnecessary.

Before:

  • Home directory would be created at /home/{{ consul_user }} by default

After:

  • No home directory is created for the Consul system user
  • The account remains fully functional for running the Consul service

Skip creating the home folder for system users
@mhumeSF mhumeSF changed the title Update user_group.yml Skip creating the home folder for system users Nov 11, 2025
@mhumeSF mhumeSF changed the title Skip creating the home folder for system users Skip creating the home folder for consul users Nov 11, 2025
@mhumeSF mhumeSF changed the title Skip creating the home folder for consul users Skip creating the home folder for consul user Nov 11, 2025
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.

1 participant