elastic / ansible-elasticsearch

Ansible playbook for Elasticsearch
Other
1.59k stars 857 forks source link

Turn on systemd on OracleLinux #814

Closed spTorin closed 2 years ago

spTorin commented 3 years ago

From repo README:

Currently this works on Debian and RedHat based linux systems.

Elasticsearch version - latest

Role version: latest

OS version - OracleLinux 8.4

Description of the problem including expected versus actual behaviour:

Service ES not started without settings in systemd file:

[Service]
LimitMEMLOCK=infinity

In file: elasticsearch-parameters.yml task:

- name: set fact use_system_d
  set_fact: use_system_d={{ (ansible_distribution == 'Debian' and ansible_distribution_version is version('8', '>=')) or (ansible_distribution in ['RedHat','CentOS'] and ansible_distribution_version is version('7', '>=')) or (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('15', '>=')) or (ansible_distribution == 'Amazon' and ansible_distribution_version is version('2', '>=')) }}

Can we add 'OracleLinux' to (ansible_distribution in ['RedHat','CentOS'] and ansible_distribution_version is version('7', '>='))?

All other requirements are met. If this check added, then the cluster is successfully installed and started on OracleLinux 8.4

botelastic[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

botelastic[bot] commented 2 years ago

This issue has been automatically closed because it has not had recent activity since being marked as stale.