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 %}
|
2014-10-28 17:45:32 +01:00
|
|
|
ensure salt-ssh is installed:
|
|
|
|
pkg.installed:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.salt_ssh }}
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|
2014-10-28 17:45:32 +01:00
|
|
|
|
|
|
|
ensure roster config:
|
|
|
|
file.managed:
|
2015-03-17 05:39:32 +01:00
|
|
|
- name: {{ salt_settings.config_path }}/roster
|
2014-10-28 17:45:32 +01:00
|
|
|
- source: salt://salt/files/roster.jinja
|
|
|
|
- template: jinja
|
2015-03-24 18:08:08 +01:00
|
|
|
{% if salt_settings.install_packages %}
|
2015-04-09 17:16:15 +02:00
|
|
|
- require:
|
2014-10-28 17:45:32 +01:00
|
|
|
- pkg: ensure salt-ssh is installed
|
2015-03-24 18:08:08 +01:00
|
|
|
{% endif %}
|