Elasticsearch: merge the curator role back into the main role
This commit is contained in:
parent
183c467621
commit
f31a9db64c
|
@ -1,9 +0,0 @@
|
||||||
# elasticsearch-curator
|
|
||||||
|
|
||||||
Install Elasticsearch Curtor, for index management.
|
|
||||||
|
|
||||||
## Tasks
|
|
||||||
|
|
||||||
Everything is in the `tasks/main.yml` file.
|
|
||||||
|
|
||||||
## Available variables
|
|
|
@ -1,29 +0,0 @@
|
||||||
---
|
|
||||||
galaxy_info:
|
|
||||||
author: Evolix
|
|
||||||
description: Install Elasticsearch Curtor, for index management.
|
|
||||||
|
|
||||||
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
|
||||||
|
|
||||||
license: GPLv2
|
|
||||||
|
|
||||||
min_ansible_version: 2.2
|
|
||||||
|
|
||||||
platforms:
|
|
||||||
- name: Debian
|
|
||||||
versions:
|
|
||||||
- jessie
|
|
||||||
|
|
||||||
galaxy_tags: []
|
|
||||||
# List tags for your role here, one per line. A tag is
|
|
||||||
# a keyword that describes and categorizes the role.
|
|
||||||
# Users find roles by searching for tags. Be sure to
|
|
||||||
# remove the '[]' above if you add tags to this list.
|
|
||||||
#
|
|
||||||
# NOTE: A tag is limited to a single word comprised of
|
|
||||||
# alphanumeric characters. Maximum 20 tags per role.
|
|
||||||
|
|
||||||
dependencies: []
|
|
||||||
# List your role dependencies here, one per line.
|
|
||||||
# Be sure to remove the '[]' above if you add dependencies
|
|
||||||
# to this list.
|
|
|
@ -25,6 +25,12 @@ Tasks are extracted in several files, included in `tasks/main.yml` :
|
||||||
|
|
||||||
By default, Elasticsearch will listen to the public interfaces (`_site_` cf. https://www.elastic.co/guide/en/elasticsearch/reference/5.0/important-settings.html#network.host), so you will have to secure it, with firewall rules for example.
|
By default, Elasticsearch will listen to the public interfaces (`_site_` cf. https://www.elastic.co/guide/en/elasticsearch/reference/5.0/important-settings.html#network.host), so you will have to secure it, with firewall rules for example.
|
||||||
|
|
||||||
|
## Curator
|
||||||
|
|
||||||
|
Curator can be installed. :
|
||||||
|
|
||||||
|
* `elasticsearch_curator` : enable the package installation (default: `False`) ;
|
||||||
|
|
||||||
## Head plugin
|
## Head plugin
|
||||||
|
|
||||||
The "head" plugin can be installed :
|
The "head" plugin can be installed :
|
||||||
|
|
|
@ -9,6 +9,8 @@ elasticsearch_default_tmpdir: /var/lib/elasticsearch/tmp
|
||||||
elasticsearch_jvm_xms: 2g
|
elasticsearch_jvm_xms: 2g
|
||||||
elasticsearch_jvm_xmx: 2g
|
elasticsearch_jvm_xmx: 2g
|
||||||
|
|
||||||
|
elasticsearch_curator: False
|
||||||
|
|
||||||
elasticsearch_plugin_head: False
|
elasticsearch_plugin_head: False
|
||||||
elasticsearch_plugin_head_owner: "elasticsearch-head"
|
elasticsearch_plugin_head_owner: "elasticsearch-head"
|
||||||
elasticsearch_plugin_head_group: "{{ elasticsearch_plugin_head_owner }}"
|
elasticsearch_plugin_head_group: "{{ elasticsearch_plugin_head_owner }}"
|
||||||
|
|
|
@ -1,30 +1,18 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: APT https transport is enabled
|
|
||||||
apt:
|
|
||||||
name: apt-transport-https
|
|
||||||
state: present
|
|
||||||
tags:
|
|
||||||
- system
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: Elastic GPG key is installed
|
|
||||||
apt_key:
|
|
||||||
url: https://packages.elastic.co/GPG-KEY-elasticsearch
|
|
||||||
state: present
|
|
||||||
tags:
|
|
||||||
- system
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: Curator sources list is available
|
- name: Curator sources list is available
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "deb http://packages.elastic.co/curator/4/debian stable main"
|
repo: "deb http://packages.elastic.co/curator/4/debian stable main"
|
||||||
|
update_cache: yes
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- system
|
- curator
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: Curator package is installed
|
- name: Curator package is installed
|
||||||
apt:
|
apt:
|
||||||
name: elasticsearch-curator
|
name: elasticsearch-curator
|
||||||
state: present
|
state: present
|
||||||
|
tags:
|
||||||
|
- curator
|
||||||
|
- packages
|
|
@ -12,3 +12,6 @@
|
||||||
|
|
||||||
- include: plugin_head.yml
|
- include: plugin_head.yml
|
||||||
when: elasticsearch_plugin_head
|
when: elasticsearch_plugin_head
|
||||||
|
|
||||||
|
- include: curator.yml
|
||||||
|
when: elasticsearch_curator
|
||||||
|
|
Loading…
Reference in New Issue