Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions logstash/init.sls
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{%- from 'logstash/map.jinja' import logstash with context %}

{% if logstash.install_pkg_src %}
include:
- .repo
{% endif %}

logstash-pkg:
pkg.{{logstash.pkgstate}}:
- name: {{logstash.pkg}}
{% if logstash.install_pkg_src %}
- require:
- pkgrepo: logstash-repo
{% endif %}

# This gets around a user permissions bug with the logstash user/group
# being able to read /var/log/syslog, even if the group is properly set for
Expand Down
2 changes: 2 additions & 0 deletions logstash/map.jinja
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{% set logstash = salt['grains.filter_by']({
'Debian': {
'install_pkg_src': True,
'pkg': 'logstash',
'svc': 'logstash',
'pkgstate': 'latest',
'indent': 4
},
'RedHat': {
'install_pkg_src': True,
'pkg': 'logstash',
'svc': 'logstash',
'pkgstate': 'latest',
Expand Down