mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-28 15:37:51 +02:00
[wip] Initial work to enable/disable "learn" modules
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{% from 'allowed_states.map.jinja' import allowed_states %}
|
||||
{% if sls in allowed_states %}
|
||||
|
||||
{% set module_list = salt['pillar.get']('learn:modules', [] ) %}
|
||||
|
||||
{% if len(module_list) != 0 %}}
|
||||
include:
|
||||
{% for module in module_list %}
|
||||
- .{{ module }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{{sls}}_state_not_allowed:
|
||||
test.fail_without_changes:
|
||||
- name: {{sls}}_state_not_allowed
|
||||
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user