This role install Fluentbit as a service on given hosts
ansible-galaxy install orachide.fluentbit
None
Variables | Required | Default value | Description |
---|---|---|---|
fluentbit_service_flush_seconds | false | 5 | Flush interval in seconds |
fluentbit_service_metrics_listen_port | false | 2020 | Http endpoint (metrics) port |
fluentbit_inputs | false | [] | Array of inputs (in JSON format) to add in default conf file |
fluentbit_outputs | false | [] | Array of ouputs (in JSON format) to add in default conf file |
fluentbit_additional_conf_files | false | [] | Additional conf files to be installed, could be Jinja template |
fluentbit_service_custom_parsers_files | false | [] | Additional conf files to be included as parses, could be Jinja template |
None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- name: Converge
hosts: all
roles:
- role: ansible-role-fluentbit
fluentbit_service_flush_seconds: 5
fluentbit_service_log_level: info
fluentbit_service_enable_metrics: true
fluentbit_service_metrics_listen_port: 2020
fluentbit_inputs:
- {"Name": "dummy", "Tag": "dummy.log"}
fluentbit_outputs:
- {"Name": "stdout", "Match": "*"}
fluentbit_additional_conf_files:
- name: cpu.conf
template: '{{ playbook_dir }}/templates/cpu.conf.j2'
fluentbit_service_custom_parsers_files:
- name: custom_parser.conf
template: '{{ playbook_dir }}/templates/custom_parser.conf.j2'
BSD
This role was created in 2019 by Rachide Ouattara.