generated from onaio/ansible-role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
115 lines (102 loc) · 3.54 KB
/
main.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
fluentd_version: "1.17.1"
fluentd_service_name: "fluentd"
fluentd_system_user: "fluentd"
fluentd_system_group: "fluentd"
fluentd_conf_directory: "/etc/fluent"
fluentd_conf_file: "fluent.conf"
fluentd_log_directory: "/var/log/fluent"
fluentd_log_file: "fluentd.log"
fluentd_lib_directory: "/opt/fluent/lib"
fluentd_gem_home_directory: "{{ fluentd_lib_directory }}"
fluentd_gem_path_directory: "{{ fluentd_lib_directory }}"
fluentd_plugin_directory: "/etc/fluent/plugin"
fluentd_system_environment_files: []
# sets the ruby version to install when from linux distribution repositories
fluentd_ruby_packages:
- ruby=1:3* # ruby version v3.*
- ruby-dev=1:3* # ruby-dev version v3.*
# installs ruby from source code from fluentd_ruby_download_url
# FYI: it takes a while
fluentd_ruby_install_from_source: false
fluentd_service_template: "etc/systemd/system/{{ fluentd_service_name }}.service.j2"
fluentd_service_path: "/etc/systemd/system/{{ fluentd_service_name }}.service"
# jemalloc https://github.com/jemalloc/jemalloc/releases confirm compatibility from dockerfile https://github.com/fluent/fluentd-docker-image
fluentd_jemalloc_version: "5.3.0"
fluentd_monitoring_groups:
- adm
# input config
fluentd_source_log_pos_directory: "{{ fluentd_log_directory }}/pos"
# start deprecated
# use fluentd_configurations instead
fluentd_log_paths:
- tag: auth
path: /var/log/auth.log*
- tag: syslog
path: /var/log/syslog*
fluentd_aws_key_id: ""
fluentd_aws_secret_key: ""
fluentd_s3_bucket: "logs"
fluentd_s3_region: ""
fluentd_server_owner: ""
fluentd_server_environment: ""
fluentd_server_private_ipv4_address: "{{ ansible_default_ipv4.address | default(ansible_all_ipv4_addresses[0]) }}"
fluentd_s3_buffer_file_path: "/var/log/td-agent/s3"
fluentd_s3_buffer_timekey: "30m"
fluentd_s3_buffer_timekey_wait: "10m"
# end deprecated
# when true it includes legacy s3 configuration to td-agent.conf otherwise it uses fluentd_configurations
fluentd_s3_bucket_legacy: false
fluentd_extra_config_file_dir: "{{ fluentd_conf_directory }}/conf.d/ansible"
# start: installation from source
fluentd_ruby_version: "3.1.0" # Specify the Ruby version here for installation from source.
fluentd_ruby_download_url: "https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.0.tar.gz" # update this url with correct link to ruby release
fluentd_ruby_install_path: "/opt/ruby"
fluentd_ruby_bin_path: "/opt/ruby/{{ fluentd_ruby_version }}/bin/ruby"
# end: installation from source
# confirm compatibility from the official dockerfile https://github.com/fluent/fluentd-docker-image
fluentd_required_gems:
- name: oj
version: 3.16.5
- name: json
version: 2.7.2
- name: rexml
version: 3.3.5
- name: async
version: 1.32.1
- name: async-http
version: 0.64.2
# omitting version or using ">=0" will represent the latest version
fluentd_extra_plugins: []
# - name: fluent-plugin-gelf
# - name: fluent-plugin-influxdb
# version: ">=0"
fluentd_configurations: []
# - name: nginx-access-log
# conf: |
# <source>
# @type tail
# format nginx
# pos_file /var/log/fluent/tmp/nginx-access.log.pos
# tag nginx.access
# path /var/log/nginx/access.log
# </source>
# <match nginx.access>
# @type file
# path /var/log/fluent/nginx-access
# </match>
# - name: syslog
# conf: |
# <source>
# @type syslog
# tag graylog2
# </source>
#
# <match graylog2.**>
# @type gelf
# host 127.0.0.1
# port 12201
# <buffer>
# flush_interval 5s
# </buffer>
# </match>