ScienceToolbox/sciencetoolbox

View on GitHub
ansible/roles/elasticsearch/tasks/marvel.yml

Summary

Maintainability
Test Coverage
---
# Install Marvel (see http://www.elasticsearch.org/guide/en/marvel/current/)
#
# The following variables need to be defined in your playbook or inventory:
# - elasticsearch_plugin_marvel_version
#
# The following variables provide configuration for the plugin.
# More options may be available in the future:
# - elasticsearch_plugin_marvel_agent_enabled
# - elasticsearch_plugin_marvel_agent_exporter_es_hosts
# - elasticsearch_plugin_marvel_agent_indices
# - elasticsearch_plugin_marvel_agent_interval
# - elasticsearch_plugin_marvel_agent_exporter_es_index_timeformat


- name: Installing Marvel Plugin
  action: >
    shell bin/plugin -i elasticsearch/marvel/{{ elasticsearch_plugin_marvel_version }}
    chdir={{ elasticsearch_home_dir }}
# Fix permissions
- file: >
    path="{{ elasticsearch_plugin_dir }}" state=directory
    owner={{ elasticsearch_user }} group={{ elasticsearch_group }}
    recurse=yes