mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 02:45:21 +00:00
24 lines
652 B
Plaintext
24 lines
652 B
Plaintext
{% set output = salt.pillar.get('filebeat:output') %}
|
|
{% set tls = salt.pillar.get('filebeat:tls', {}) %}
|
|
include:
|
|
- .pkg
|
|
- .conf
|
|
- .service
|
|
|
|
extend:
|
|
filebeat:
|
|
service.running:
|
|
- watch:
|
|
- pkg: app-admin/filebeat
|
|
- file: /etc/filebeat/filebeat.yml
|
|
- file: /etc/filebeat/conf.d/
|
|
- file: /etc/filebeat/filebeat.template.json
|
|
- file: /var/lib/filebeat/module/
|
|
{% for out in output.keys() %}
|
|
{% if out in tls %}
|
|
{% for pemtype in ('cert', 'key', 'ca') %}
|
|
- file: /etc/filebeat/{{ out }}-{{ pemtype }}.pem
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|