0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-02 23:06:50 +01:00
salt-formula/salt/ssh.sls
Niels Abspoel 896578a75a Removed package_map lookup
Added map.jinja solution more in line with other formulas,
This also improves issue #30

and pull request #30
2014-12-31 11:52:31 +01:00

14 lines
361 B
Plaintext

{% from "salt/map.jinja" import pkgs with context %}
ensure salt-ssh is installed:
pkg.installed:
- name: {{ pkgs['salt-ssh'] }}
ensure roster config:
file.managed:
- name: {{ pkgs.get('config_path', '/etc/salt') }}/roster
- source: salt://salt/files/roster.jinja
- template: jinja
- require:
- pkg: ensure salt-ssh is installed