-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.yml
33 lines (32 loc) · 1.09 KB
/
setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- hosts: all
remote_user: vagrant
sudo: yes
vars:
elasticsearch_version: 1.7.0
elasticsearch_cluster_name: elasticsearch
elasticsearch_index_number_of_replicas: 0
elasticsearch_heap_size: 1g
logstash_conf_files:
- collectd.conf
- syslog.conf
pre_tasks:
- name: Update apt
apt: update_cache=yes cache_valid_time=3600
roles:
- azavea.kibana
- Stouts.elasticsearch
- geerlingguy.logstash
tasks:
- name: Change Logstash defaults
copy: dest=/etc/default/logstash src=logstash
- name: Configure rsyslog
copy: dest=/etc/rsyslog.d/10-rsyslog.conf src=10-rsyslog.conf
- name: Restart rsyslog
# I'd prefer to use the service module, but it seems to be buggy - http://stackoverflow.com/a/30349016/6681
# service: name=rsyslog pattern=state=restarted
command: service rsyslog restart
- name: Restart logstash
# I'd prefer to use the service module, but it seems to be buggy - http://stackoverflow.com/a/30349016/6681
# service: name=rsyslog pattern=state=restarted
command: service logstash restart