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

21 行
768B

  1. doc:
  2. name: Salt
  3. description: Salt is a new approach to infrastructure management. Easy enough to get running in minutes, scalable enough to manage tens of thousands of servers, and fast enough to communicate with them in seconds.
  4. role:
  5. {%- if pillar.salt.minion is defined %}
  6. {%- from "salt/map.jinja" import minion with context %}
  7. minion:
  8. name: minion
  9. param:
  10. version:
  11. value: {{ salt['cmd.shell']('salt-minion --version')|replace('salt-minion ', '') }}
  12. {%- endif %}
  13. {%- if pillar.salt.master is defined %}
  14. {%- from "salt/map.jinja" import master with context %}
  15. master:
  16. name: master
  17. param:
  18. version:
  19. value: {{ salt['cmd.shell']('salt --version')|replace('salt ', '') }}
  20. {%- endif %}