Automatically Update ES URLs

This commit is contained in:
Josh Brower
2023-07-14 12:07:32 -04:00
parent 78db64a419
commit 2cc0c4c0ac
3 changed files with 60 additions and 1 deletions

View File

@@ -30,6 +30,13 @@ so-elastic-fleet-auto-configure-server-urls:
- name: /usr/sbin/so-elastic-fleet-urls-update
{% endif %}
# Automatically update Fleet Server Elasticsearch URLs
{% if grains.role not in ['so-fleet'] %}
so-elastic-fleet-auto-configure-elasticsearch-urls:
cmd.run:
- name: /usr/sbin/so-elastic-fleet-es-url-update
{% endif %}
{% if SERVICETOKEN != '' %}
so-elastic-fleet:
docker_container.running: