orachide.fluentbit
Ansible Role Fluentbit
This role installs Fluentbit as a service on your specified hosts.
Installation
Run this command to install the role:
ansible-galaxy install orachide.fluentbit
Requirements
No special requirements.
Role Variables
Variables | Required | Default value | Description |
---|---|---|---|
fluentbit_service_flush_seconds | No | 5 | How often to flush data, in seconds |
fluentbit_service_metrics_listen_port | No | 2020 | The port for the metrics HTTP endpoint |
fluentbit_inputs | No | [] | List of input configurations in JSON format to add to the main config file |
fluentbit_outputs | No | [] | List of output configurations in JSON format to add to the main config file |
fluentbit_additional_conf_files | No | [] | Additional configuration files to install; can be a Jinja template |
fluentbit_apt_repo | No | deb https://packages.fluentbit.io/ubuntu/bionic bionic main | The URL for the apt package source |
Dependencies
No dependencies.
Example Playbook
Here’s an example of how to use this role with some parameters:
- name: Setup Fluentbit
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_apt_repo: 'deb https://packages.fluentbit.io/debian/buster buster main'
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'
License
BSD
Author Information
This role was created in 2019 by Rachide Ouattara.
Informazioni sul progetto
Install Fluentbit as a service
Installa
ansible-galaxy install orachide.fluentbit
Licenza
Unknown
Download
44.8k
Proprietario
Want to learn and share more and more !!!!