Skip to content
Snippets Groups Projects

Draft: Enable Loki as a replacement for Elasticsearch when `enable_loki` is set.

Closed ale requested to merge loki into master
2 files
+ 11
33
Compare changes
  • Side-by-side
  • Inline
Files
2
---
---
- user:
name: "log-collector"
system: yes
home: "/var/log/remote"
groups: ["log-collector-credentials"]
# Example playbook using fail and when together
# Example playbook using fail and when together
- fail:
- fail:
msg: You cannot have enable_elasticsearch and enable_loki at the same time.
msg: You cannot have enable_elasticsearch and enable_loki at the same time.
@@ -19,14 +13,6 @@
@@ -19,14 +13,6 @@
- include_tasks: loki.yml
- include_tasks: loki.yml
when: enable_loki
when: enable_loki
# Setup the rsyslog-collector instance. Needs packages from
# stretch-backports, to support modern versions of Elasticsearch.
- name: Install rsyslog-elasticsearch package from backports
apt:
name: rsyslog-elasticsearch
default_release: "{{ 'stretch-backports' if float_debian_dist == 'stretch' else '' }}"
state: present
- name: Create the rsyslog-collector logs dir
- name: Create the rsyslog-collector logs dir
file:
file:
path: "/var/log/remote"
path: "/var/log/remote"
Loading