opstree_devops.opensearch

Ansible Role: Opensearch

Ansible role to configure Opensearch standalone and cluster integration

Some of the highlighting features are:-

  • Standalone setup of Opensearch
  • Cluster setup of Opensearch
  • Usermanagement

Supported OS

Ubuntu:

  • focal
  • bionic

Centos:

  • 7
  • 8

AmaozonLinux:2

Requirements

Java

Roles Variables

Mandatory Variables

Variable Default Value Possible Values Description
Standalone true
  • true
  • false
boolean
Cluster false
  • true
  • false
boolean
admin_password Strong@321 Password string

Optional Variables

Variable Default Value Possible Values Description
Version 1.3.0 opensearch Version string
VmMaxMapCountValue 262144 Count value String
FsFileMaxValue 65536 Count value String
Min_HeapSize 2 Count value String
Max_HeapSize 2 Count value String
clusterName my-application Application name String
OpenSearchPort 9200 Port number String
LocalSystemDest /tmp/opensearch-nodecerts Path of local system String

Usage

The inventory for Opensearch role should look like this:-

[opensearch]
opensearchnode1 ansible_ssh_host=3.18.112.95 node_type=master,data 
opensearchnode2 ansible_ssh_host=18.222.251.138 node_type=master,data 
opensearchnode3 ansible_ssh_host=18.220.251.141 node_type=master,data 

[opensearch:vars]
ansible_ssh_user=ubuntu
ansible_ssh_private_key_file= 

[cluster_nodes]
opensearchnode1
opensearchnode2
opensearchnode3

[cluster_master_nodes]
opensearchnode1
opensearchnode2
opensearchnode3

An example playbook should look like this:-

---
- name: opensearch
  hosts: all
  gather_facts: true
  roles:
   - { role: opstree_devops.opensearch }

and for running the ansible role, we will use ansible cli.

ansible-playbook -i tests/inventory tests/test.yml

Authors

Varghese Kurian

About

Install and configure opensearch.

Install
ansible-galaxy install opstree_devops.opensearch
GitHub repository
License
Unknown
Downloads
81