switch to symlink

This commit is contained in:
Josh Brower
2024-01-31 16:17:40 -05:00
parent 0d08bb0a91
commit 0fe96bfc2d

View File

@@ -44,6 +44,13 @@ so-elastic-fleet-auto-configure-artifact-urls:
cmd.run: cmd.run:
- name: /usr/sbin/so-elastic-fleet-artifacts-url-update - name: /usr/sbin/so-elastic-fleet-artifacts-url-update
- retry: True - retry: True
elasticagentartifactssymlink:
file.symlink:
- name: /opt/so/saltstack/local/salt/beats
- target: /nsm/elastic-fleet/artifacts/beats
- user: socore
- group: socore
{% endif %} {% endif %}
# Sync Elastic Agent artifacts to Fleet Node # Sync Elastic Agent artifacts to Fleet Node
@@ -51,8 +58,7 @@ so-elastic-fleet-auto-configure-artifact-urls:
elasticagent_syncartifacts: elasticagent_syncartifacts:
file.recurse: file.recurse:
- name: /nsm/elastic-fleet/artifacts/beats - name: /nsm/elastic-fleet/artifacts/beats
- source: salt://beats?saltenv=elasticartifacts - source: salt://beats
{% endif %} {% endif %}
{% if SERVICETOKEN != '' %} {% if SERVICETOKEN != '' %}