Code Monkey home page Code Monkey logo

ansible-playbook-deployment-elkf's Introduction

Ansible playbook for ELK and Filebeat

Build Status

Description

This playbook has multiple roles, it permit:

Prerequisites:

  • Ubuntu xenial
  • Redhat/centos

Install Ansible 2.5.0

Ubuntu xenial

sudo bash
apt update
apt install -y software-properties-common
apt-add-repository -y ppa:ansible/ansible
apt update
apt install -y ansible

Centos

sudo yum install -y ansible

Set up

  • You will need to install the roles dependencies
export OPENIO_LOGANALYZER_RELEASE="0.1.6"
mkdir -p ~/openio-loganalyzer && cd ~/openio-loganalyzer
curl -sL "https://github.com/open-io/ansible-playbook-deployment-elkf/$OPENIO_LOGANALYZER_RELEASE.tar.gz" | tar xz --strip-components=1
ansible-galaxy install -r requirements.yml --force

  • You will need to make a choice about with ELK mode that you would install

    • docker : if you want to install docker ELK
    • bar-metal: if you want to install ELK physicaly on the hostvars
  • You will need to change your inventory file inventories/<YOUR_CHOICE>/hosts according this:

[elkservers]
elk_node1 ansible_host=192.168.1.2

[elkservers:vars]
ansible_user=root


[filebeatservers]
filebeat_node1 ansible_host=192.168.1.3

[filebeatservers:vars]
ansible_user=root

  • Change the variables in inventories/<YOUR_CHOICE>/group_vars/elkservers and inventories/<YOUR_CHOICE>/group_vars/filebeatservers in depend on your hosts configuration.

    • DOCKER
Variable name Description Type
elk_cluster_name The name of Elasticsearch cluster String
elasticsearch_heap_size The memory of Elasticsearch HEAP SIZE String
logstash_heap_size The memory of Logstash HEAP SIZE String
install_docker_elk Install container ELK Boolean
docker_elk_version Version of container ELK String
docker_repo_path Path of ELK docker-compose String
openio_namespace The OPENIO namespace String
filebeat_prospectors List of filebeat prospectors List
kibana_server_group name of group of kibana String
kibana_interface input interface of kibana server String
  • BAR METAL
Variable name Description Type
elk_cluster_name The name of Elasticsearch cluster String
elasticsearch_heap_size The memory of Elasticsearch HEAP SIZE String
logstash_heap_size The memory of Logstash HEAP SIZE String
docker_repo_path Path of ELK docker-compose String
install_bar_metal_elk Install ELK physicaly Boolean
es_version ELK Version String
elasticsearch_data_dirs Elasticsearch data repository String
kibana_config kibana configuration String
openio_namespace The OPENIO namespace String
filebeat_prospectors List of filebeat prospectors List
kibana_server_group name of group of kibana String
kibana_interface input interface of kibana server String

Before running the playbook, make sure that you have checked that all the fields marked in bold are correct.

Run

$ ansible-playbook -i inventories/<YOUR_CHOICE>/hosts main.yml

Now you can to head http://[ADMIN_IP]:5601

Examples

ansible-playbook-deployment-elkf's People

Contributors

papebadiane avatar

Watchers

 avatar

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.