Skip to content

ait-testbed/atb-ansible-opensearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role OpenSearch

This roll installs opensearch as a single-node-instance. It is a modified fork of the official opensearch ansible role. Checkout the CHANGELOG.txt for all changes.

Please note that this modified version is not meant for production use!

Prerequisite

  • Ansible 2.9+
  • Java 8

Requirements

This role was tested on Ubuntu 22.04. Other linux distributions might work as well. The original role sets the hostname and /etc/hosts. This fork does not set the hostname and requires another role for that like https://github.com/ait-testbed/atb-ansible-hostname.

Minimum hardware requirements:

  • Memory: min. 8GB RAM or more
  • CPU: 2 cores or more

Configuration

  # Start service after installation and run tests
  os_test: True
  os_version: "2.13.0"
  os_dashboards_version: "2.13.0"
  os_dashboards_user: opensearch-dashboards
  os_download_url: https://artifacts.opensearch.org/releases/bundle/opensearch
  os_user: opensearch
  os_cluster_name: os-cluster
  admin_password: "myStrongPassword@123!"
  kibanaserver_password: "Test@6789"
  logstash_password: "Test@456"
  domain_name: aecid-testbed.local
  opensearch_hostname: search.aecid-testbed.local
  opensearch_hosts:
          search.aecid-testbed.local:
            ip: 192.168.100.11

Example playbook

- name: Deploy opensearch
  hosts: opensearch
  remote_user: ubuntu
  become: true
  vars:
    os_version: "2.13.0"
    os_dashboards_version: "2.13.0"
    os_dashboards_user: opensearch-dashboards
    os_download_url: https://artifacts.opensearch.org/releases/bundle/opensearch
    os_user: opensearch
    os_cluster_name: os-cluster
    admin_password: "myStrongPassword@123!"
    kibanaserver_password: "Test@6789"
    logstash_password: "Test@456"
    domain_name: aecid-testbed.local
    opensearch_hostname: search.aecid-testbed.local
    opensearch_hosts:
            search.aecid-testbed.local:
              ip: 192.168.100.11
  roles:
    - role: hostname
      vars:
        hostname: search
        hostname_ip: 192.168.100.11
        hostname_fqdn: search.aecid-testbed.local
    - role: opensearch

License

This project is licensed under the Apache v2.0 License.

Copyright

Copyright OpenSearch Contributors. See NOTICE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors