Saltstack Official OpenSSH Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
614B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Get the relevant values from the `opts` dict #}
  4. {%- set opts_cli = opts.get('__cli', '') %}
  5. {%- set opts_masteropts_cli = opts | traverse('__master_opts__:__cli', '') %}
  6. {#- Determine the type of salt command being run #}
  7. {%- if opts_cli == 'salt-minion' %}
  8. {%- set cli = 'minion' %}
  9. {%- elif opts_cli == 'salt-call' %}
  10. {%- set cli = 'ssh' if opts_masteropts_cli in ('salt-ssh', 'salt-master') else 'local' %}
  11. {%- else %}
  12. {%- set cli = 'unknown' %}
  13. {%- endif %}
  14. {%- do salt['log.debug']('[libsaltcli] the salt command type has been identified to be: ' ~ cli) %}