Use salt file roots

This commit is contained in:
Josh Brower
2024-02-08 09:54:51 -05:00
parent 503a09f150
commit 8d0e8789bd

View File

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