Skip to content

ait-cs-IaaS/acr-ansible-opensearch-install

 
 

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.

Configuration

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

Installs and configures opensearch on Ubuntu

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jinja 96.8%
  • Python 3.2%