Add extra_hosts entry for local instance when running as heavy node

This commit is contained in:
weslambert
2021-07-06 14:14:58 -04:00
committed by GitHub
parent 3c8ad18693
commit 4946f32d88

View File

@@ -145,7 +145,12 @@ so-logstash:
- name: so-logstash
- user: logstash
- extra_hosts:
{% if grains.role in ['so-heavynode'] %}
{% set MANAGER = salt['grains.get']('nodename') %}
{% set MANAGERIP = salt['pillar.get']('sensor:mainip') %}
{% else %}
- {{ MANAGER }}:{{ MANAGERIP }}
{% endif %}
- environment:
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
- port_bindings: