forked from evolix/ansible-roles
elastic-stack role
This commit is contained in:
parent
6f56e3a12b
commit
b82587b2b7
10
elastic-stack/README.md
Normal file
10
elastic-stack/README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# elastic-stack
|
||||
|
||||
Install the Elastic Stack.
|
||||
|
||||
It is a "meta-role" for :
|
||||
|
||||
- elasticsearch
|
||||
- elasticsearch-plugin-head
|
||||
- logstash
|
||||
- kibana
|
8
elastic-stack/meta/main.yml
Normal file
8
elastic-stack/meta/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
dependencies:
|
||||
# - { role: java8 }
|
||||
# - { role: elastic-sources-list }
|
||||
- { role: elasticsearch }
|
||||
- { role: elasticsearch-plugin-head }
|
||||
- { role: logstash }
|
||||
- { role: kibana }
|
25
elastic-stack/tasks/main.yml
Normal file
25
elastic-stack/tasks/main.yml
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue