|
1234567891011121314151617181920 |
- doc:
- name: Salt
- 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.
- role:
- {%- if pillar.salt.minion is defined %}
- {%- from "salt/map.jinja" import minion with context %}
- minion:
- name: minion
- param:
- version:
- value: {{ salt['cmd.shell']('salt-minion --version')|replace('salt-minion ', '') }}
- {%- endif %}
- {%- if pillar.salt.master is defined %}
- {%- from "salt/map.jinja" import master with context %}
- master:
- name: master
- param:
- version:
- value: {{ salt['cmd.shell']('salt --version')|replace('salt ', '') }}
- {%- endif %}
|