Merge pull request #120 from gingerwizard/master
Fix for template fileglob not being defined + initial shield files
This commit is contained in:
commit
407ad6223b
4 changed files with 11 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
3
tasks/elasticsearch-shield.yml
Normal file
3
tasks/elasticsearch-shield.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
|
||||
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue