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