add support to configure path.repo option required for backups/snapshots

This commit is contained in:
Jani Heikkine 2020-06-18 17:14:06 +02:00
parent 9246d7d694
commit 7a7def1626
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ elasticsearch_reachable_host: 127.0.0.1
elasticsearch_jvm_xms: null
elastic_stack_version: 7.6.2
elasticsearch_lower_disk_requirements: false
elasticsearch_path_repo: []
elasticrepo:
apt: 'https://artifacts.elastic.co/packages/7.x/apt'

View File

@ -6,6 +6,12 @@ path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: {{ elasticsearch_network_host }}
{% if elasticsearch_path_repo | length>0 %}
path.repo:
{% for item in elasticsearch_path_repo %}
- {{ item }}
{% endfor %}
{% endif %}
{% if single_node %}
discovery.type: single-node