Coder Social home page Coder Social logo

garutilorenzo / ansible-collection-elk Goto Github PK

View Code? Open in Web Editor NEW
44.0 6.0 23.0 107 KB

The Elastic stack (ELK) powered by Ansible

Home Page: https://garutilorenzo.github.io/ansible-collection-elk/

License: GNU General Public License v3.0

Jinja 97.91% Shell 2.09%
ansible kibana logstash ansible-role ansible-collection elasticsearch beats filebeat metricbeat heartbeat elk elk-stack

ansible-collection-elk's Introduction

GitHub issues GitHub GitHub forks GitHub stars

elk-logo

Install and configure the ELK stack

Install and configure the ELK stack:

Elastic Beats:

Requirements

Install ansible, ipaddr and netaddr:

pip install -r requirements.txt

Roles documentation

You can refer to the README.md file in each role directory:

you can also explore all roles variables here

Using this collection

Install from GitHub

ansible-galaxy collection install git+https://github.com/garutilorenzo/ansible-collection-elk

Examples

How to use this Ansible collection

Vagrant

To test this collection you can use Vagrant and Virtualbox to bring up a example infrastructure. Once you have downloaded this repo use Vagrant to start the virtual machines:

vagrant up

In the Vagrantfile you can inject your public ssh key directly in the authorized_keys of the vagrant user. You have to change the CHANGE_ME placeholder in the Vagrantfile. You can also adjust the number of the vm deployed by changing the NNODES variable (Default: 6)

Tutorial

Full tutorial available here

TODO

  • Add cleanup step
  • Add upgrade step

ansible-collection-elk's People

Contributors

fredleger avatar garutilorenzo avatar yo-han avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-collection-elk's Issues

Update the playbooks to v8.12.2

Buongiorno Lorenzo,

I am trying to use this wonderful project to install a new bare metal Elastic cluster.
I am a little crazy and I tried to install the version 8.12.2

At first I encountered some issues I could solve with some vars.yml tuning.
Now I see that some setups are getting misaligned with the Elastic recommendations.

Examples:

  • Kibana is not installable with SSL and https
  • the Kibana user is now deprecated in favor of kybana_system
  • Beats is not trivial to install and make it work on my setup
  • the passwords and users for the additional modules are not on specific names, but always use the same elasticsearch_username variable

elasticsearch.yml.j2 config error

Following error appears when elasticsearch_https_enabled: no:

[2023-04-25T10:49:30,358][ERROR][o.e.b.Elasticsearch      ] [es-0] fatal exception while booting Elasticsearch
org.elasticsearch.ElasticsearchSecurityException: invalid configuration for xpack.security.http.ssl - [xpack.security.http.ssl.enabled] is not set, but the following settings have been configured in elasticsearch.yml : [xpack.security.http.ssl.keystore.secure_password]

Possible fix for elasticsearch.yml.j2:

...
{% if elasticsearch_https_enabled %}
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: {{ elasticsearch_certs_dir }}/http.p12
{% else %}
xpack.security.http.ssl.enabled: false
{% endif %}

Amazing work

Not An issue as such but want to say great work on this, this has helped me out loads.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.