This role installs Beats products on a Ubuntu machine.
This role is capable of installing all beats products available as deb packages. However, for configuring beats products (e.g filebeat.yml, metricbeat.yml) the only supported products so far are:
- filebeat
- metricbeat
None
You should specify the version for the Beats products you want to install with the beats_ver variable (default: 6.2.2).
You also need to specify the products you want to install in a list variable called products:
products:
- filebeat
- metricbeatIf you want to also configure the products on the fly you will need to create a variable with the product name plus _config: which should be a dictionary containing the YAML config for the product you choose. E.G:
filebeat_config:
filebeat.modules:
- module: system
syslog:
enabled: true
output.logstash.hosts:
- logstash.server:5044The specific values for the configuration are well described in the beats documentation
There is no dependencies
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- role: jobscore.beats
products:
- filebeat
- metricbeat
- heartbeat
GPLv3
This role was created by Eric Magalhães