Skip to content

Commit 407ad62

Browse files
author
Dale McDiarmid
authored
Merge pull request elastic#120 from gingerwizard/master
Fix for template fileglob not being defined + initial shield files
2 parents 1029dc4 + 59bdee2 commit 407ad62

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ es_templates: false
1212
es_user: elasticsearch
1313
es_group: elasticsearch
1414
es_config: {}
15+
es_install_shield: false
1516
#Need to provide default directories
1617
es_pid_dir: "/var/run/elasticsearch"
1718
es_data_dirs: "/var/lib/elasticsearch"

tasks/elasticsearch-shield.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+

tasks/elasticsearch-templates.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
- name: Copy templates to elasticsearch
1010
copy: src={{ item }} dest=/etc/elasticsearch/templates owner={{ es_user }} group={{ es_group }}
11-
with_fileglob: "{{ es_templates_fileglob }}"
11+
when: es_templates_fileglob is defined
12+
with_fileglob:
13+
- "{{ es_templates_fileglob }}"
1214

1315
- set_fact: http_port=9200
1416
tags:

tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
when: es_plugins is defined or es_plugins_reinstall
2525
tags:
2626
- plugins
27+
- include: elasticsearch-shield.yml
28+
when: es_install_shield
29+
tags:
30+
- shield
2731
- include: elasticsearch-service.yml
2832
tags:
2933
- service

0 commit comments

Comments
 (0)