-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathconverge.yml
More file actions
67 lines (62 loc) · 1.97 KB
/
Copy pathconverge.yml
File metadata and controls
67 lines (62 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
# The workaround for arbitrarily named role directory is important because the
# git repo has one name and the role within it another
# Found at:
# https://github.com/ansible-community/molecule/issues/1567#issuecomment-436876722
- name: Converge
hosts: all
collections:
- netways.elasticstack
vars:
beats_filebeat_log_inputs:
messages:
name: messages
paths:
- /var/log/messages
multiline:
type: pattern
pattern: '^[[:space:]]+(at|\.{3})[[:space:]]+\b|^Caused by:'
negate: false
match: after
fields:
testfield: thisisatest
testfield2: thisisanothertest
elasticsearch_jna_workaround: true
elasticsearch_disable_systemcallfilterchecks: true
elasticstack_collection_managed: false
elasticstack_no_log: false
beats_filebeat_mysql_slowlog_input: true
beats_auditbeat: true
beats_auditbeat_output: logstash
beats_auditbeat_enable: false # can't run on GitHub because of permissions
beats_filebeat_journald_inputs:
everything:
id: service-vault
include_matches:
- _SYSTEMD_UNIT=vault.service
beats_metricbeat: true
beats_metricbeat_output: logstash
#beats_filebeat_docker: true
elasticstack_release: "{{ lookup('env', 'ELASTIC_RELEASE') | int}}"
tasks:
- name: Set Filebeat version for 7.x
ansible.builtin.set_fact:
elasticstack_version: "7.17.1"
when:
- elasticstack_release == 7
- name: Set Filebeat version for 8.x
ansible.builtin.set_fact:
elasticstack_version: "8.4.1"
when:
- elasticstack_release == 8
- name: "Include Elastics repos role"
ansible.builtin.include_role:
name: repos
- name: Refresh apt cache
ansible.builtin.apt:
update_cache: yes
changed_when: false
when: ansible_os_family == "Debian"
- name: "Include Beats"
ansible.builtin.include_role:
name: beats