Support for scripts

This commit is contained in:
Dale McDiarmid 2015-11-25 17:13:45 +00:00
parent d25fc792b6
commit bdb9ee6a4a
13 changed files with 53 additions and 14 deletions

View file

@ -13,4 +13,4 @@
when: es_config['discovery.zen.ping.multicast.enabled'] == false and es_config['discovery.zen.ping.unicast.hosts'] is not defined
# If multicast is false OR if > 2.0 AND not defined as true (or explictly false)
# If multicast is false OR if > 2.0 AND not defined as true (or explicitly false)

View file

@ -1,3 +1,12 @@
---
- set_fact: es_script_dir={{ es_log_dir }}/{{inventory_hostname}}-{{ es_instance_name }}
- set_fact: es_script_dir={{es_config['path.scripts']}}
when: es_config['path.scripts'] is not defined
- name: Create script dir
file: state=directory path={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
- name: Copy scripts to elasticsearch
copy: src=scripts dest=/etc/elasticsearch/
copy: src=scripts dest={{ es_scripts_dir }}

View file

@ -7,8 +7,8 @@
- include: elasticsearch.yml
- include: elasticsearch-plugins.yml
when: es_plugins is defined
#- include: elasticsearch-scripts.yml
# when: es_scripts
- include: elasticsearch-scripts.yml
when: es_scripts
#- include: elasticsearch-templates.yml
# when: es_templates