Saltstack Official OpenSSH Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {% from "openssh/map.jinja" import openssh with context %}
-
- openssh:
- {% if openssh.server is defined %}
- pkg.installed:
- - name: {{ openssh.server }}
- {% endif %}
- {% if openssh.sshd_enable is sameas true %}
- service.running:
- - enable: {{ openssh.sshd_enable }}
- - name: {{ openssh.service }}
- {% if openssh.server is defined %}
- - require:
- - pkg: {{ openssh.server }}
- {% endif %}
- {% else %}
- service.dead:
- - enable: False
- - name: {{ openssh.service }}
- {% endif %}
|