Skip to content

Commit 04f7394

Browse files
Merge pull request #3 from Efalia/feature/externalisation-de-la-conf
feat: externalisation de la conf
2 parents 696a548 + 57f4366 commit 04f7394

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ elasticsearch_service_enabled: true
88

99
elasticsearch_network_host: localhost
1010
elasticsearch_http_port: 9200
11+
elasticsearch_log: /var/log/elasticsearch
12+
elasticsearch_data: /var/lib/elasticsearch
1113

1214
elasticsearch_heap_size_min: 1g
1315
elasticsearch_heap_size_max: 2g

templates/elasticsearch.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
#
3232
# Path to directory where to store the data (separate multiple locations by comma):
3333
#
34-
path.data: /var/lib/elasticsearch
34+
path.data: {{ elasticsearch_data }}
3535
#
3636
# Path to log files:
3737
#
38-
path.logs: /var/log/elasticsearch
38+
path.logs: {{ elasticsearch_log }}
3939
#
4040
# ----------------------------------- Memory -----------------------------------
4141
#

0 commit comments

Comments
 (0)