Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Amazon linux 2 #21

Merged
merged 6 commits into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A community repository for Ansible Playbook of OpenSearch Project.
This ansible playbook supports the following,

- Can be deployed on baremetal and VMs(AWS EC2)
- Supports most popular **Linux distributions**(Centos7, RHEL7)
- Supports most popular **Linux distributions**(Centos7, RHEL7, Amazon Linux2)
- Install and configure the Apache2.0 opensource OpenSearch
- Configure TLS/SSL for OpenSearch transport layer(Nodes to Nodes communication) and REST API layer
- Generate self-signed certificates to configure TLS/SSL for opensearch
Expand All @@ -27,7 +27,7 @@ This ansible playbook supports the following,

### Prerequisite

- **Ansible**
- **Ansible 2.9+**
- **Java 8**

### Configure
Expand Down
8 changes: 4 additions & 4 deletions opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

- name: opensearch installation & configuration
hosts: os-cluster
gather_facts: false
gather_facts: true
peterzhuamazon marked this conversation as resolved.
Show resolved Hide resolved
roles:
- { role: centos7/opensearch }
- { role: linux/opensearch }

- name: opensearch dashboards installation & configuration
hosts: dashboards
gather_facts: false
gather_facts: true
roles:
- { role: centos7/dashboards }
- { role: linux/dashboards }
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
- hostname:
name: "{{ inventory_hostname }}"

# Disabling for Amazon Linux 2 as selinux is disabled by default.
- name: Disable the selinux
selinux:
state: disabled
when: ansible_distribution != "Amazon"

- name: Populate the nodes to /etc/hosts
import_tasks: etchosts.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
- hostname:
name: "{{ inventory_hostname }}"

# Disabling for Amazon Linux 2 as selinux is disabled by default.
- name: Disable the selinux
selinux:
state: disabled
when: ansible_distribution != "Amazon"

- name: Populate the nodes to /etc/hosts
import_tasks: etchosts.yml
Expand Down