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

Should all users created by this formula be system users? #70

Closed
myii opened this issue Jul 18, 2021 · 1 comment · Fixed by #72
Closed

Should all users created by this formula be system users? #70

myii opened this issue Jul 18, 2021 · 1 comment · Fixed by #72
Labels

Comments

@myii
Copy link
Member

myii commented Jul 18, 2021

When preparing this formula for Debian 11 support, came across the following problem:

Setting up prometheus (2.24.1+ds-1+b5) ...
adduser: The user `prometheus' already exists, but is not a system user. Exiting.
dpkg: error processing package prometheus (--configure):
 installed prometheus package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 prometheus

Resolved this with 0e65cc3. However, I wouldn't be surprised if this should be done for all Linux-based installations. In that case, the fix is easy:

{%- if grains.kernel|lower == 'linux' %}
- createhome: false
{%- if grains.get('osfinger', '') in ['Debian-11'] %}
- system: true
{%- endif %}

Just need to remove the nested if statements:

                    {%- if grains.kernel|lower == 'linux' %}
      - createhome: false
-                     {%- if grains.get('osfinger', '') in ['Debian-11'] %}
      - system: true
-                     {%- endif %}
@saltstack-formulas-travis

🎉 This issue has been resolved in version 5.6.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants