0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2024-12-11 08:26:14 +01:00
openssh-formula/openssh/init.sls

15 lines
342 B
Plaintext
Raw Normal View History

{% from "openssh/map.jinja" import openssh with context %}
2013-06-13 19:16:18 +02:00
openssh:
2014-08-08 14:38:27 +02:00
{% if openssh.server is defined %}
pkg.installed:
- name: {{ openssh.server }}
2014-08-08 14:38:27 +02:00
{% endif %}
2013-06-13 19:16:18 +02:00
service.running:
- enable: True
- name: {{ openssh.service }}
2014-08-08 14:38:27 +02:00
{% if openssh.server is defined %}
2013-06-13 19:16:18 +02:00
- require:
- pkg: {{ openssh.server }}
2014-08-08 14:38:27 +02:00
{% endif %}