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
- makedirs: True
{% for integration in integration_keys %}
{% if 'enabled_nodes' in optional_integrations[integration]%}
{% set enabled_nodes = optional_integrations[integration]["enabled_nodes"] %}
{% if minion in enabled_nodes %}
optional_integrations_dynamic_{{ minion }}_{{ integration }}:
@@ -124,6 +125,7 @@ optional_integrations_dynamic_{{ minion }}_{{ integration }}:
- defaults:
NAME: {{ minion }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}