Sync Elastic Agent Artifacts

This commit is contained in:
Josh Brower
2024-01-28 10:12:25 -05:00
parent dc5ea89255
commit cfc33b1a34
2 changed files with 11 additions and 1 deletions

View File

@@ -41,6 +41,15 @@ so-elastic-fleet-auto-configure-elasticsearch-urls:
- retry: True
{% endif %}
# Sync Elastic Agent artifacts to Fleet Node
{% if grains.role in ['so-fleet'] %}
elasticagent_syncartifacts:
file.recurse:
- name: /nsm/elastic-fleet/artifacts/beats
- source: salt://beats?saltenv=elasticartifacts
{% endif %}
{% if SERVICETOKEN != '' %}
so-elastic-fleet:
docker_container.running: