salt
salt copied to clipboard
Make username configurable in the rpm SPEC file to avoid conflicts with existing salt user
Description of Issue/Enhancement
Currently, the SaltStack SPEC file hardcodes the username salt for the service user. This can cause conflicts for users who already have an existing salt user account used for other purposes. It would be beneficial to make the username configurable during installation or provide a mechanism to override the default user.
Steps to Reproduce
- Install SaltStack RPM on a system that already has a
saltuser created for a different application or purpose. - Observe that the RPM preinstall script fails or overwrites the existing
saltuser settings.
Suggested Solution
- Modify the SPEC file to accept an environment variable or a build parameter that allows specifying a custom username.
- Update the preinstall, postinstall, and preuninstall scriptlets to use this configurable username.
- Provide documentation on how to use the new configuration options.
This enhancement would provide much-needed flexibility and prevent potential conflicts with existing system users.
Additional Context
Making the username configurable is a standard practice to avoid conflicts in environments where usernames might overlap across different applications. Implementing this change will make SaltStack more adaptable to various deployment environments.
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
- Community Wiki
- Salt’s Contributor Guide
- Join our Community Slack
- IRC on LiberaChat
- Salt Project YouTube channel
- Salt Project Twitch channel
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!