mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-10 02:03:12 +01:00
only include extra_hosts if nodestab exists
This commit is contained in:
@@ -56,8 +56,8 @@ so-soc:
|
||||
- /opt/so/conf/soc/soc.json:/opt/sensoroni/sensoroni.json:ro
|
||||
- /opt/so/conf/soc/changes.json:/opt/sensoroni/html/changes.json:ro
|
||||
- /opt/so/log/soc/:/opt/sensoroni/logs/:rw
|
||||
- extra_hosts:
|
||||
{%- if salt['pillar.get']('nodestab', {}) %}
|
||||
- extra_hosts:
|
||||
{%- for SN, SNDATA in salt['pillar.get']('nodestab', {}).items() %}
|
||||
- {{ SN.split('_')|first }}:{{ SNDATA.ip }}
|
||||
{%- endfor %}
|
||||
@@ -125,4 +125,4 @@ soc_state_not_allowed:
|
||||
test.fail_without_changes:
|
||||
- name: soc_state_not_allowed
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user