elastic-stack role

This commit is contained in:
Jérémy Lecour 2016-11-21 17:33:43 +01:00 committed by Jérémy Lecour
parent 6f56e3a12b
commit b82587b2b7
4 changed files with 47 additions and 4 deletions

10
elastic-stack/README.md Normal file
View file

@ -0,0 +1,10 @@
# elastic-stack
Install the Elastic Stack.
It is a "meta-role" for :
- elasticsearch
- elasticsearch-plugin-head
- logstash
- kibana

View file

@ -0,0 +1,8 @@
---
dependencies:
# - { role: java8 }
# - { role: elastic-sources-list }
- { role: elasticsearch }
- { role: elasticsearch-plugin-head }
- { role: logstash }
- { role: kibana }

View file

@ -0,0 +1,25 @@
---
- name: APT https transport is enabled
apt:
name: apt-transport-https
state: installed
tags:
- system
- packages
- name: Elastic GPG key is installed
apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
state: present
tags:
- system
- packages
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
state: present
tags:
- system
- packages

View file

@ -20,8 +20,8 @@
# nginx_private_htpasswd_absent: ["toto:dsfgdfsdf"]
# }
# - apache
- { role: elasticsearch, elasticsearch_jvm_heap: "256m" }
- elasticsearch-plugin-head
- kibana
- logstash
- { role: elastic-stack,
elasticsearch_jvm_xms: "256m",
elasticsearch_jvm_xmx: "256m"
}
- filebeat