Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

grafana_system_user and grafana_system_group are not used #238

Closed
IyadKandalaft opened this issue Sep 20, 2020 · 2 comments
Closed

grafana_system_user and grafana_system_group are not used #238

IyadKandalaft opened this issue Sep 20, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@IyadKandalaft
Copy link

What happened?

The grafana-server service fails to start. Upon review of the logs, I noted that it fails to create the logs directory because of denied permissions. When I look at the process owner and group, it's grafana for both, which is not what I set grafana_system_user and grafana_system_group to. Upon review of the repository, the variables are not referenced anywhere.

Did you expect to see some different?

Yes, the server process should have the correct ownership as defined by the variables.

How to reproduce it (as minimally and precisely as possible):

Set grafana_system_user and grafana_system_group to something other than the default. Look at grafana-server service to see that the user has not changed.

Environment

  • Role version:

b35bab3

  • Ansible version information:

    $ ansible --version ansible 2.9.11 config file = None configured module search path = ['/home/iyad/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/iyad/miniconda3/envs/devops/lib/python3.7/site-packages/ansible executable location = /home/iyad/miniconda3/envs/devops/bin/ansible python version = 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21) [GCC 7.3.0]

  • Variables:

grafana_system_user 
grafana_system_group 
  • Ansible playbook execution Logs:
N/A

Anything else we need to know?:

No

@IyadKandalaft IyadKandalaft added the bug Something isn't working label Sep 20, 2020
@paulfantom
Copy link
Member

You're right, this is a documentation bug as those variables should be deleted from readme. This role is installing deb/rpm package offered by grafana organization and as such cannot influence settings inside said package (like system user or group setting).

@paulfantom
Copy link
Member

Fixed with d463402

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants