Skip to content

Commit 62b68b1

Browse files
committed
Fix YAML/Jinja2 syntax. Simple as that
fixes #242
1 parent fad7ed9 commit 62b68b1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

roles/logstash/templates/pipelines.yml.j2

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
# Default beat input #
2020
# Autoconfigured Redis outputs: input
2121

22-
- pipeline
22+
- pipeline:
2323
id: ansible-input
24-
unsafe_shutdown: {{ ansible_input_unsafe_shutdown | default({{ logstash_pipeline_unsafe_shutdown }}) }}
25-
path
24+
unsafe_shutdown: {{ ansible_input_unsafe_shutdown | default( logstash_pipeline_unsafe_shutdown ) }}
25+
path:
2626
config: "/etc/logstash/conf.d/ansible-input/*.conf"
27-
queue
27+
queue:
2828
type: {{ logstash_input_queue_type }}
2929
max_bytes: {{ logstash_input_queue_max_bytes }}
3030

@@ -34,12 +34,12 @@
3434
# Default elasticsearch output #
3535
# Autoconfigured Redis input: forwarder
3636

37-
- pipeline
37+
- pipeline:
3838
id: ansible-forwarder
39-
unsafe_shutdown: {{ ansible_forwarder_unsafe_shutdown | default({{ logstash_pipeline_unsafe_shutdown }}) }}
40-
path
39+
unsafe_shutdown: {{ ansible_forwarder_unsafe_shutdown | default( logstash_pipeline_unsafe_shutdown ) }}
40+
path:
4141
config: "/etc/logstash/conf.d/ansible-forwarder/*.conf"
42-
queue
42+
queue:
4343
type: {{ logstash_forwarder_queue_type }}
4444
max_bytes: {{ logstash_forwarder_queue_max_bytes }}
4545

@@ -72,12 +72,12 @@
7272

7373
{% endif %}
7474

75-
- pipeline
75+
- pipeline:
7676
id: {{ item.name }}
77-
unsafe_shutdown: {{ item.unsafe_shutdown | default({{ logstash_pipeline_unsafe_shutdown }}) }}
78-
path
77+
unsafe_shutdown: {{ item.unsafe_shutdown | default( logstash_pipeline_unsafe_shutdown ) }}
78+
path:
7979
config: "/etc/logstash/conf.d/{{ item.name }}/*.conf"
80-
queue
80+
queue:
8181
type: {{ item.queue_type | default('memory') }}
8282
max_bytes: {{ item.queue_max_bytes | default('1gb') }}
8383

0 commit comments

Comments
 (0)