2015-03-17 05:39:32 +01:00
|
|
|
{% from "salt/map.jinja" import salt_settings with context %}
|
2014-10-28 17:45:32 +01:00
|
|
|
|
2015-03-24 18:08:08 +01:00
|
|
|
{% if salt_settings.install_packages %}
|
2015-04-11 01:11:19 +02:00
|
|
|
ensure-salt-ssh-is-installed:
|
2014-10-28 17:45:32 +01:00
|
|
|
pkg.installed:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.salt_ssh }}
|
2018-02-01 11:13:55 +01:00
|
|
|
{%- if salt_settings.version is defined %}
|
|
|
|
- version: {{ salt_settings.version }}
|
|
|
|
{%- endif %}
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|
2014-10-28 17:45:32 +01:00
|
|
|
|
2015-04-11 01:11:19 +02:00
|
|
|
ensure-roster-config:
|
2014-10-28 17:45:32 +01:00
|
|
|
file.managed:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.config_path }}/roster
|
2015-06-09 23:05:49 +02:00
|
|
|
- source: salt://{{ slspath }}/files/roster.jinja
|
2014-10-28 17:45:32 +01:00
|
|
|
- template: jinja
|
2015-03-24 18:08:08 +01:00
|
|
|
{% if salt_settings.install_packages %}
|
2015-04-09 17:16:15 +02:00
|
|
|
- require:
|
2015-04-11 01:11:19 +02:00
|
|
|
- pkg: ensure-salt-ssh-is-installed
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|