Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
581B

  1. {% from "salt/map.jinja" import salt_settings with context %}
  2. {% if salt_settings.install_packages %}
  3. ensure-salt-ssh-is-installed:
  4. pkg.installed:
  5. - name: {{ salt_settings.salt_ssh }}
  6. {%- if salt_settings.version is defined %}
  7. - version: {{ salt_settings.version }}
  8. {%- endif %}
  9. {% endif %}
  10. ensure-roster-config:
  11. file.managed:
  12. - name: {{ salt_settings.config_path }}/roster
  13. - source: salt://{{ slspath }}/files/roster.jinja
  14. - template: jinja
  15. {% if salt_settings.install_packages %}
  16. - require:
  17. - pkg: ensure-salt-ssh-is-installed
  18. {% endif %}