Move Elastic Fleet logic in so-common to so-elastic-fleet-common

This commit is contained in:
Wes
2023-05-30 18:43:56 +00:00
parent e5117a343d
commit b6e090f29f
14 changed files with 92 additions and 13 deletions

View File

@@ -6,7 +6,7 @@
# this file except in compliance with the Elastic License 2.0.
{% from 'vars/globals.map.jinja' import GLOBALS %}
. /usr/sbin/so-common
. /usr/sbin/so-elastic-fleet-common
printf "\n### Create ES Token ###\n"
ESTOKEN=$(curl -K /opt/so/conf/elasticsearch/curl.config -L -X POST "localhost:5601/api/fleet/service_tokens" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' | jq -r .value)