Skip to content

Commit

Permalink
Support Amazon linux 2 (#21)
Browse files Browse the repository at this point in the history
* add changes to support amz linux

Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com>

* change folder name

Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com>

* remove selinux step for AM2

Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com>

* update readme

Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com>
  • Loading branch information
saravanan30erd authored Dec 22, 2021
1 parent 38f82a8 commit d98c62d
Show file tree
Hide file tree
Showing 26 changed files with 10 additions and 6 deletions.
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
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 }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d98c62d

Please sign in to comment.