Giter VIP home page Giter VIP logo

elastic-stack-macos-playbook's Introduction

Elastic Stack Ansible Playbook for MacOS

This playbook is for setting up version 7.x of the Elastic Stack on a local MacOS environment You can still use this for 6.x but you will need to modify the site.yml and set the target_os: for some of the products that were not divided out by OS from a downloads path perspective.

Notes and requirements

  • Prequisite: You will need Ansible installed you can install with brew install ansible
  • This was tested on MacOS Mojave 10.14.x
  • The playbook is currently configured to install the full Elastic Stack including all the Beats
  • You can install all components or individually (or comment out what you don't want to install in the site.yml)
  • Currently ELKUp starts Elasticsearch with a 2gb JVM, Kibana and APM Server with RUM enabled
  • You can change the Elasticsearch JVM size by editing ES_JVM_SIZE in ELKup
  • Setup Direnv
  • Have pip3 installed
     $ brew install python3

Instructions

Run the setup script:

   ./setup.sh 

This assumes that you want ES_INSTALL_HOME to be in $HOME/workspace/elastic-install

To install all the components, run the playbook with the following command, this installs version 7.3.0 of all components

ansible-playbook site.yml -i hosts --extra-vars "tag=7.3.0 run_option=install-all"

To install a single component, run the playbook with the following command, this installs Elasticearch version 7.3.0

ansible-playbook site.yml -i hosts --extra-vars "tag=7.3.0 run_option=install-elasticearch"

Run ELKup start to start the stack

ELKup start

Run ELKup start to start the stack

ELKup stop

Run the playbook with the following command, this removes version 7.3.0

CAUTION This forceably removes the ENTIRE installation including data directories and config files

ansible-playbook site.yml -i hosts --extra-vars "tag=7.3.0 run_option=remove-all"

To remove a single component, run the playbook with the following command, this removes Elasticearch version 7.3.0.

ansible-playbook site.yml -i hosts --extra-vars "tag=7.3.0 run_option=install-elasticearch"

Valid run_options

install-all, install-elasticearch, install-logstash, install-kibana, install-apm-server, install-metricbeat, install-filebeat, install-hearbeat

remove-all, remove-elasticearch, remove-logstash, remove-kibana, remove-apm-server, remove-metricbeat, remove-filebeat, remove-hearbeat

elastic-stack-macos-playbook's People

Contributors

bvader avatar dkothari-clgx avatar

Watchers

James Cloos 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.