openssh-formula/openssh/init.sls
2014-08-08 13:38:27 +01:00

15 lines
342 B
Plaintext

{% from "openssh/map.jinja" import openssh with context %}
openssh:
{% if openssh.server is defined %}
pkg.installed:
- name: {{ openssh.server }}
{% endif %}
service.running:
- enable: True
- name: {{ openssh.service }}
{% if openssh.server is defined %}
- require:
- pkg: {{ openssh.server }}
{% endif %}