Go to file
Martin Weinelt d1f33c1172 systemd: set WorkingDirectory to fix relative mkdir
Loki 2.4.1 tries to `mkdir` a path relative to the working directory,
which is problematic when it is not set to a path that is writeable by
the loki user.

> level=error ts=2021-12-02T16:18:14.974316503Z caller=log.go:106 msg="error running loki" err="mkdir wal: permission denied [...]"

Fixes this by setting the working directory to lokis storage directory.

Signed-off-by: Martin Weinelt <martin.weinelt@man-da.de>
2021-12-02 17:25:04 +01:00
.github/workflows ansible actions 2020-05-04 18:54:03 -03:00
defaults configs 2020-05-25 18:24:24 -03:00
handlers configs 2020-05-04 18:48:42 -03:00
meta initial commit 2020-04-19 17:28:06 -03:00
tasks configs 2020-05-04 18:48:42 -03:00
templates systemd: set WorkingDirectory to fix relative mkdir 2021-12-02 17:25:04 +01:00
vars initial commit 2020-04-19 17:28:06 -03:00
LICENSE initial commit 2020-04-19 17:28:06 -03:00
README.md update readme 2020-05-04 18:58:54 -03:00

Role Name

Deploy and configure Loki/Promtail using Ansible.

Requirements

  • Ansible >= 2.9

Example Playbook

Install Loki and Promtail in local machine

  - hosts: servers
    roles:
        - { role: diogenxs.loki, loki_bins: ['loki', 'promtail'] }

License

WTFPL see LICENSE

Author Information

https://diogenxs.dev