mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
Add extra_hosts entry for local instance when running as heavy node
This commit is contained in:
@@ -145,7 +145,12 @@ so-logstash:
|
|||||||
- name: so-logstash
|
- name: so-logstash
|
||||||
- user: logstash
|
- user: logstash
|
||||||
- extra_hosts:
|
- extra_hosts:
|
||||||
|
{% if grains.role in ['so-heavynode'] %}
|
||||||
|
{% set MANAGER = salt['grains.get']('nodename') %}
|
||||||
|
{% set MANAGERIP = salt['pillar.get']('sensor:mainip') %}
|
||||||
|
{% else %}
|
||||||
- {{ MANAGER }}:{{ MANAGERIP }}
|
- {{ MANAGER }}:{{ MANAGERIP }}
|
||||||
|
{% endif %}
|
||||||
- environment:
|
- environment:
|
||||||
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
|
- LS_JAVA_OPTS=-Xms{{ lsheap }} -Xmx{{ lsheap }}
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
@@ -205,4 +210,4 @@ append_so-logstash_so-status.conf:
|
|||||||
test.fail_without_changes:
|
test.fail_without_changes:
|
||||||
- name: {{sls}}_state_not_allowed
|
- name: {{sls}}_state_not_allowed
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user