Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

floragunncom/search-guard-ansible

 
 

Repository files navigation

Search Guard Ansible role

This role is based on the official Elasticsearch Ansible role with a few modifications how plugins are handled.

Limitations

  • This role does not install Kibana currently. Only an Elasticsearch cluster with the Search Guard plugin will be provisioned at the moment.
  • Role is shipped with default demo certificates. Do NOT use them in production.
  • No Kitchen tests for Search Guard yet

Usage

  • You do not need the official Elasticsearch Ansible role alongside with this role.
ansible-galaxy install floragunncom.search_guard_ansible

Then create a playbook like shown in the Example playbook

inventory.yml

Define your hosts of which the elasticsearch cluster is composed of and which node type (master, data, client) you would like to run on which host. Also assign the maximum heap here.

group_vars/all.yml

Adjust the Elasticsearch and Search Guard version as well as the elasticsearch.yml.

site.yml

The entrypoint for your playbook. This is mainly executing the floragunncom.search_guard_ansible role and the sgadmin handler afterwards to initialize Search Guard.

Running the example playbook with vagrant

git clone https://github.com/floragunncom/search-guard-ansible.git
cd search-guard-ansible/example_playbook
vagrant up --no-provision
ansible-playbook -v -i inventory.yml site.yml

This repo is currently considered alpha quality, so do not use in production yet.

Credits

Licensed under ASLv2, originally developed by elastic.

Packages

No packages published

Languages

  • Ruby 62.8%
  • Shell 30.7%
  • Python 5.1%
  • Makefile 1.3%
  • Groovy 0.1%