logstash

tests Ansible Galaxy

ansible-role-logstash

This role installs and configures Logstash.

Requirements

Ansible 2.15 or newer.

Supported Platforms

Role Variables

Variable Required Default Choices Comments
logstash_dependencies true list See defaults/main.yml.
logstash_package_state true present string Use latest to upgrade logstash.
logstash_user true logstash string
logstash_group true logstash string
logstash_secondary_groups true [] list
logstash_path_data true /var/lib/logstash string
logstash_path_config true /etc/logstash/conf.d string
logstash_path_logs true /var/log/logstash string
logstash_log_level true info string
logstash_conf_fileglob true files/*.conf string
logstash_plugins true [] list
logstash_jvm_heap_size true 1g string
logstash_extra_config true {} dict

Dependencies

Java 8+ or equivalent. For testing this roles uses default-jre-headless package.

Example Playbook

- hosts: all
  roles:
    - role: ansible-role-logstash

Testing

molecule test

License

MIT

Author Information

@boutetnico

Install
ansible-galaxy install boutetnico/ansible-role-logstash
GitHub repository
License
mit
Downloads
22
Owner
System Engineer