elasticsearch: tmpdir is created if tmp is noexec
This commit is contained in:
parent
64c11c1296
commit
cfd1e690fb
|
@ -4,5 +4,6 @@ elasticsearch_network_host: "[_site_, _local_]"
|
||||||
elasticsearch_network_publish_host: "_site_"
|
elasticsearch_network_publish_host: "_site_"
|
||||||
elasticsearch_custom_datadir: Null
|
elasticsearch_custom_datadir: Null
|
||||||
elasticsearch_custom_tmpdir: Null
|
elasticsearch_custom_tmpdir: Null
|
||||||
|
elasticsearch_default_tmpdir: /var/lib/elasticsearch/tmp
|
||||||
elasticsearch_jvm_xms: 2g
|
elasticsearch_jvm_xms: 2g
|
||||||
elasticsearch_jvm_xmx: 2g
|
elasticsearch_jvm_xmx: 2g
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Create {{ elasticsearch_custom_tmpdir }}"
|
- name: "Create {{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||||
file:
|
file:
|
||||||
path: "{{ elasticsearch_custom_tmpdir }}"
|
path: "{{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||||
owner: elasticsearch
|
owner: elasticsearch
|
||||||
group: elasticsearch
|
group: elasticsearch
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
- name: change JVM tmpdir
|
- name: change JVM tmpdir
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/elasticsearch/jvm.options
|
dest: /etc/elasticsearch/jvm.options
|
||||||
line: "-Djava.io.tmpdir={{ elasticsearch_custom_tmpdir }}"
|
line: "-Djava.io.tmpdir={{ elasticsearch_custom_tmpdir or elasticsearch_default_tmpdir | mandatory }}"
|
||||||
regexp: "^-Djava.io.tmpdir="
|
regexp: "^-Djava.io.tmpdir="
|
||||||
insertafter: "## JVM configuration"
|
insertafter: "## JVM configuration"
|
||||||
notify:
|
notify:
|
||||||
|
|
Loading…
Reference in a new issue