Default/overridable logstash configuration
This commit is contained in:
parent
41f93bcd5d
commit
cb66222319
|
@ -39,3 +39,19 @@
|
|||
line: "-Xmx{{ logstash_jvm_xmx }}"
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Add a configuration
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/logstash/conf.d/logstash.conf
|
||||
force: yes
|
||||
with_first_found:
|
||||
- "templates/logstash/logstash.{{ inventory_hostname }}.conf.j2"
|
||||
- "templates/logstash/logstash.{{ host_group }}.conf.j2"
|
||||
- "templates/logstash/logstash.default.conf.j2"
|
||||
- "logstash.default.conf.j2"
|
||||
register: logstash_template
|
||||
|
||||
- debug:
|
||||
var: logstash_template
|
||||
verbosity: 1
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
# In this file you can put a Logstash pipeline configuration
|
Loading…
Reference in New Issue