Git Product home page Git Product logo

elastic-role-playbook's Introduction

to deploy cluster

ansible-playbook -i inventories/vagrant --ask-become-pass cluster-prep.yaml #deploys packages, configure hostnames and disables firewall
ansible-playbook -i inventories/vagrant --ask-become-pass deploy_cluster_uri.yaml  #deploys cluster, users and roles for fms, creates default index temlate, adds s3 repo
ansible-playbook -i inventories/vagrant --ask-become-pass deploy_kibana.yaml #deploys kibana, creates fms space.

testing repo with minio (tested version elastic 7.7.0):

  • Deploy minio in docker in masternode, and make sure port is accessible. Also install mc client as explained in minio docs.

  • mc config host add myminio http://127.0.0.1:9000 minioadmin minioadmin
    
  • mc mb myminio/elasticsearch
    
  • export S3_SECRET_KEY=minioadmin; export S3_ACCESS_KEY=minioadmin
    
  • echo $S3_SECRET_KEY | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin s3.client.default.secret_key
    
  • echo $S3_ACCESS_KEY | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin s3.client.default.access_key
    
  • elasticsearch.yml: 
    s3.client.default.endpoint: "http://127.0.0.1:9000"
    s3.client.default.protocol: "http"
    
  • Create a json file with the following contents:

    { "type": "s3", "settings": { "bucket": "elasticsearch" } }

  • elasticsearch defaults to amazon s3, so thats why you need to add those settings in elasticsearch.yml

  • in 7.7 version (probably also in 7.x) keys to access s3 repo MUST be stored in the keystore, so there you have the commands to add them.

  • in the json to create the repo, you don't need to add anything else than the bucket name, and the default path.

  • DO A RESTART OF ELASTIC IN ALL NODES!!!

  • Do not freak out when you see amazon s3 exceptions when troubleshooting this, just make sure to have this config.

  • The key for this to work with minio is make sure setting up the exact same endpoint in minio that you setup in the mc command.

elastic-role-playbook's People

Stargazers

Hadj H. avatar Rodrigo de la Fuente 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.