elasticsearch_start_timeout parameter added for OD installation
This commit is contained in:
parent
60cc77f497
commit
04f3ec1aab
@ -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
|
||||||
|
ansible.builtin.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