Skip to content

Commit

Permalink
Merge pull request elastic#120 from gingerwizard/master
Browse files Browse the repository at this point in the history
Fix for template fileglob not being defined + initial shield files
  • Loading branch information
Dale McDiarmid committed Jul 20, 2016
2 parents 1029dc4 + 59bdee2 commit 407ad62
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Expand Up @@ -12,6 +12,7 @@ es_templates: false
es_user: elasticsearch
es_group: elasticsearch
es_config: {}
es_install_shield: false
#Need to provide default directories
es_pid_dir: "/var/run/elasticsearch"
es_data_dirs: "/var/lib/elasticsearch"
Expand Down
3 changes: 3 additions & 0 deletions tasks/elasticsearch-shield.yml
@@ -0,0 +1,3 @@
---


4 changes: 3 additions & 1 deletion tasks/elasticsearch-templates.yml
Expand Up @@ -8,7 +8,9 @@

- name: Copy templates to elasticsearch
copy: src={{ item }} dest=/etc/elasticsearch/templates owner={{ es_user }} group={{ es_group }}
with_fileglob: "{{ es_templates_fileglob }}"
when: es_templates_fileglob is defined
with_fileglob:
- "{{ es_templates_fileglob }}"

- set_fact: http_port=9200
tags:
Expand Down
4 changes: 4 additions & 0 deletions tasks/main.yml
Expand Up @@ -24,6 +24,10 @@
when: es_plugins is defined or es_plugins_reinstall
tags:
- plugins
- include: elasticsearch-shield.yml
when: es_install_shield
tags:
- shield
- include: elasticsearch-service.yml
tags:
- service
Expand Down

0 comments on commit 407ad62

Please sign in to comment.