From eebad74e4f15091bb980d879ab9a778cd32d53a1 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 18 Oct 2018 21:58:14 -0400 Subject: [PATCH] Filebeat Fix filebeat for ssl --- salt/filebeat/init.sls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/filebeat/init.sls b/salt/filebeat/init.sls index a637fd2f9..81bfa0388 100644 --- a/salt/filebeat/init.sls +++ b/salt/filebeat/init.sls @@ -12,7 +12,8 @@ # # 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', '') %} +{%- set MASTER = grains['master'] %} +{%- set MASTERIP = salt['pillar.get']('static:masterip', '') %} # Filebeat Setup filebeatetcdir: @@ -54,6 +55,7 @@ so-filebeat: - image: toosmooth/so-filebeat:techpreview - hostname: so-filebeat - user: root + - extrahosts: {{ MASTER }}:{{ MASTERIP }} - binds: - /opt/so/log/filebeat:/var/log/filebeat:rw - /opt/so/conf/filebeat/etc/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro