fluentbit

Ansible Role Fluentbit

Build Status Ansible Galaxy

This role install Fluentbit as a service on given hosts

Installation

ansible-galaxy install orachide.fluentbit

Requirements

None

Role Variables

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_apt_repo false deb https://packages.fluentbit.io/ubuntu/bionic bionic main An apt source url to use

Dependencies

None

Example Playbook

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_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.

Install
ansible-galaxy install orachide/ansible-role-fluentbit
GitHub repository
License
Unknown
Downloads
36945
Owner
Want to learn and share more and more !!!!