# Copyright 2014,2015,2016,2017,2018 Security Onion Solutions, LLC # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . {% set lsaccessip = salt['pillar.get']('master:lsaccessip', '') %} # Redis Setup filebeatconfdir: file.directory: - name: /opt/so/conf/filebeat/etc/pki - user: 939 - group: 939 - makedirs: True filebeatconfsync: file.recurse: - name: /opt/so/conf/filebeat/etc - source: salt://filebeat/etc - user: 0 - group: 0 - template: jinja filebeatcrt: file.managed: - name: /opt/so/conf/filebeat/etc/pki/filebeat.crt - source: salt://filebeat/files/filebeat.crt filebeatkey: file.managed: - name: /opt/so/conf/filebeat/etc/pki/filebeat.key - source: salt://filebeat/files/filebeat.key so-filebeat: docker_container.running: - image: toosmooth/so-filebeat:beta - hostname: so-filebeat - user: root - binds: - /opt/so/log/filebeat:/var/log/filebeat:rw - /opt/so/conf/filebeat/etc/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro - /nsm/bro/spool/manager:/nsm/bro/spool:ro - /opt/so/conf/filebeat/etc/pki/filebeat.crt:/usr/share/filebeat/filebeat.crt:ro - /opt/so/conf/filebeat/etc/pki/filebeat.key:/usr/share/filebeat/filebeat.key:ro - /etc/ssl/certs/intca.crt:/usr/share/filebeat/intraca.crt:ro