CyVerse-Ansible.beats
ansible-beats
This tool installs and sets up a Beat instance.
You can find more details here: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
Requirements
- You need Ansible version 2.x.
Role Variables
Variable | Required | Default | Comments |
---|---|---|---|
BEAT_TYPE | No | "metricbeat" | The name of the Beat to install. The list of supported_beats can be found in the role variables. |
beat_install | No | true | A flag to control if installation steps should run. |
beat_config | No | If set, this yaml config will be used for the Beat's config file. If not set, the config file stays the same. * |
|
beat_svc_state | No | If set, this is the desired state for Ansible’s Service Module. | |
beat_svc_enabled | No | If set, this is the desired enabled state for Ansible’s Service Module. | |
beat_cfg_file | No | {{BEAT_TYPE}}.yml | If set, this will be the name of the config file. |
beat_version | No | If set, it will install the specified version. |
*
: You can use config file namespacing for the beat_config
variable, but it's not recommended.
Dependencies
None
Example Playbooks
To install metricbeat
with the default settings:
- hosts: myhosts
roles:
- role: cyverse.beats
To install metricbeat
with specific settings:
- hosts: myhosts
vars:
beat_config:
metricbeat.modules:
- module: system
metricsets:
- cpu
- filesystem
- memory
- network
- process
enabled: true
period: 10s
processes: ['.*']
cpu_ticks: false
- module: apache
metricsets: ["status"]
enabled: true
period: 1s
hosts: ["http://127.0.0.1"]
output.elasticsearch:
hosts: ["127.0.0.1:9200"]
roles:
- role: cyverse.beats
To install filebeat
with specific settings:
- hosts: myhosts
vars:
BEAT_TYPE: filebeat
beat_config:
...
roles:
- role: cyverse.beats
License
See LICENSE.txt
Author Information
Visit https://cyverse.org
Informazioni sul progetto
A role to install and configure Elasticsearch Beats.
Installa
ansible-galaxy install CyVerse-Ansible.beats
Licenza
other
Download
418
Proprietario