mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
add GLOBALS.is_sensor
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
set GLOBALS = {
|
||||
'hostname': INIT.GRAINS.nodename,
|
||||
'is_manager': false,
|
||||
'is_sensor': false,
|
||||
'manager': INIT.GRAINS.master,
|
||||
'minion_id': INIT.GRAINS.id,
|
||||
'main_interface': INIT.PILLAR.host.mainint,
|
||||
@@ -63,5 +64,8 @@
|
||||
{% do GLOBALS.update({'is_manager': true}) %}
|
||||
{% endif %}
|
||||
|
||||
{% if GLOBALS.role in GLOBALS.sensor_roles %}
|
||||
{% do GLOBALS.update({'is_sensor': true}) %}
|
||||
{% endif %}
|
||||
|
||||
{% do salt['defaults.merge'](GLOBALS, ROLE_GLOBALS, merge_lists=False, in_place=True) %}
|
||||
|
||||
Reference in New Issue
Block a user