Elastic Agent - move gen installers

This commit is contained in:
Josh Brower
2022-09-07 16:57:11 -04:00
parent e8af315e40
commit f00aafdfb2
4 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
SO-Generated installers will be found under Salt local

View File

@@ -2,12 +2,14 @@
# or more contributor license agreements. Licensed under the Elastic License 2.0; you may not use
# this file except in compliance with the Elastic License 2.0.
{%- set GRIDNODETOKEN = salt['pillar.get']('elasticfleet:server:grid_enrollment') -%}
{% set AGENT_STATUS = salt['service.available']('elastic-agent') %}
{% if not AGENT_STATUS %}
run_installer:
cmd.script:
- name: salt://elastic-fleet/files/so_agent-installers/so-elastic-agent_linux
- name: salt://elastic-fleet/files/so_agent-installers/so-elastic-agent_linux
- args: -token={{ GRIDNODETOKEN }}
{% endif %}