Merge pull request #660 from wazuh/659-es-start-timeout
ES start timeout added
This commit is contained in:
commit
2da0f98b33
@ -7,6 +7,7 @@ elasticsearch_jvm_xms: null
|
|||||||
elastic_stack_version: 7.10.2
|
elastic_stack_version: 7.10.2
|
||||||
elasticsearch_lower_disk_requirements: false
|
elasticsearch_lower_disk_requirements: false
|
||||||
elasticsearch_path_repo: []
|
elasticsearch_path_repo: []
|
||||||
|
elasticsearch_start_timeout: 90
|
||||||
|
|
||||||
elasticrepo:
|
elasticrepo:
|
||||||
apt: 'https://artifacts.elastic.co/packages/7.x/apt'
|
apt: 'https://artifacts.elastic.co/packages/7.x/apt'
|
||||||
|
|||||||
@ -107,6 +107,14 @@
|
|||||||
- ansible_distribution == "Ubuntu"
|
- ansible_distribution == "Ubuntu"
|
||||||
- ansible_distribution_major_version | int == 14
|
- ansible_distribution_major_version | int == 14
|
||||||
|
|
||||||
|
- name: Ensure extra time for Elasticsearch to start on reboots
|
||||||
|
lineinfile:
|
||||||
|
path: /usr/lib/systemd/system/elasticsearch.service
|
||||||
|
regexp: '^TimeoutStartSec='
|
||||||
|
line: "TimeoutStartSec={{ elasticsearch_start_timeout }}"
|
||||||
|
become: yes
|
||||||
|
tags: configure
|
||||||
|
|
||||||
- name: Ensure Elasticsearch started and enabled
|
- name: Ensure Elasticsearch started and enabled
|
||||||
service:
|
service:
|
||||||
name: elasticsearch
|
name: elasticsearch
|
||||||
@ -160,3 +168,9 @@
|
|||||||
failed_when: http_response.status != 200
|
failed_when: http_response.status != 200
|
||||||
when:
|
when:
|
||||||
- elasticsearch_xpack_users is defined
|
- elasticsearch_xpack_users is defined
|
||||||
|
|
||||||
|
- name: Reload systemd configuration
|
||||||
|
systemd:
|
||||||
|
daemon_reload: true
|
||||||
|
become: yes
|
||||||
|
notify: restart elasticsearch
|
||||||
|
|||||||
@ -10,6 +10,7 @@ elasticsearch_network_host: '0.0.0.0'
|
|||||||
elasticsearch_node_master: true
|
elasticsearch_node_master: true
|
||||||
elasticsearch_node_data: true
|
elasticsearch_node_data: true
|
||||||
elasticsearch_node_ingest: true
|
elasticsearch_node_ingest: true
|
||||||
|
elasticsearch_start_timeout: 90
|
||||||
|
|
||||||
elasticsearch_lower_disk_requirements: false
|
elasticsearch_lower_disk_requirements: false
|
||||||
elasticsearch_cluster_nodes:
|
elasticsearch_cluster_nodes:
|
||||||
|
|||||||
@ -54,6 +54,14 @@
|
|||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
tags: install
|
tags: install
|
||||||
|
|
||||||
|
- name: Ensure extra time for Elasticsearch to start on reboots
|
||||||
|
lineinfile:
|
||||||
|
path: /usr/lib/systemd/system/elasticsearch.service
|
||||||
|
regexp: '^TimeoutStartSec='
|
||||||
|
line: "TimeoutStartSec={{ elasticsearch_start_timeout }}"
|
||||||
|
become: yes
|
||||||
|
tags: configure
|
||||||
|
|
||||||
- name: Ensure Elasticsearch started and enabled
|
- name: Ensure Elasticsearch started and enabled
|
||||||
service:
|
service:
|
||||||
name: elasticsearch
|
name: elasticsearch
|
||||||
@ -100,4 +108,10 @@
|
|||||||
|
|
||||||
- import_tasks: "RMRedHat.yml"
|
- import_tasks: "RMRedHat.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
- name: Reload systemd configuration
|
||||||
|
systemd:
|
||||||
|
daemon_reload: true
|
||||||
|
become: yes
|
||||||
|
notify: restart elasticsearch
|
||||||
when: perform_installation
|
when: perform_installation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user