fix: Update template

This commit is contained in:
jeanluc
2024-02-17 19:11:28 +01:00
parent 5f25a5a280
commit 6fd0bbdf3d
13 changed files with 293 additions and 270 deletions

View File

@@ -2,13 +2,12 @@
{#- Get the relevant values from the `opts` dict #}
{%- set opts_cli = opts.get('__cli', '') %}
{%- set opts_masteropts_cli = opts | traverse('__master_opts__:__cli', '') %}
{#- Determine the type of salt command being run #}
{%- if opts_cli == 'salt-minion' %}
{%- set cli = 'minion' %}
{%- elif opts_cli == 'salt-call' %}
{%- set cli = 'ssh' if opts_masteropts_cli in ('salt-ssh', 'salt-master') else 'local' %}
{%- set cli = 'ssh' if "__master_opts__" in opts else 'local' %}
{%- elif opts_cli %}
{%- set cli = 'api' %}
{%- else %}