Make sure enabled_nodes is populated

This commit is contained in:
Wes
2023-11-01 16:47:51 +00:00
parent bca1194a46
commit 655c88cd09

View File

@@ -112,6 +112,7 @@ fleet_server_integrations_{{ minion }}:
- group: 939 - group: 939
- makedirs: True - makedirs: True
{% for integration in integration_keys %} {% for integration in integration_keys %}
{% if 'enabled_nodes' in optional_integrations[integration]%}
{% set enabled_nodes = optional_integrations[integration]["enabled_nodes"] %} {% set enabled_nodes = optional_integrations[integration]["enabled_nodes"] %}
{% if minion in enabled_nodes %} {% if minion in enabled_nodes %}
optional_integrations_dynamic_{{ minion }}_{{ integration }}: optional_integrations_dynamic_{{ minion }}_{{ integration }}:
@@ -124,6 +125,7 @@ optional_integrations_dynamic_{{ minion }}_{{ integration }}:
- defaults: - defaults:
NAME: {{ minion }} NAME: {{ minion }}
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}