forked from ISTI-ansible-roles/ansible-roles
library/roles/ELK: First parts of the new elasticsearch/logstash/kibana (ELK) roles.
This commit is contained in:
parent
e02b0a097a
commit
51d5e37310
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
elasticsearch_repo_key: https://packages.elastic.co/GPG-KEY-elasticsearch
|
||||
elasticsearch_repo: 'deb http://packages.elastic.co/elasticsearch/2.x/debian stable main'
|
||||
elasticsearch_packages:
|
||||
- elasticsearch
|
||||
|
||||
elasticsearch_cluster_name: 'Elasticsearch Cluster'
|
||||
elasticsearch_enabled: True
|
||||
elasticsearch_http_port: 9200
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: Install the elasticsearch repo key
|
||||
apt_key: url={{ elasticsearch_repo_key }} state=present
|
||||
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|
||||
|
||||
- name: Install the elasticsearch deb repository
|
||||
apt_repository: repo='{{ elasticsearch_repo }}' state=present update_cache=yes
|
||||
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|
||||
|
||||
- name: Install the elasticsearch deb packages
|
||||
apt: name='{{ item }}' state=present
|
||||
with_items: '{{ elasticsearch_packages }}'
|
||||
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|
||||
|
||||
- name: Ensure that elasticsearch is enabled and running
|
||||
service: name=elasticsearch state=started enabled=yes
|
||||
when: elasticsearch_enabled
|
||||
tags: [ 'ELK', 'elasticsearch', 'elk' ]
|
||||
|
Loading…
Reference in New Issue