mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-06 17:17:14 +02:00
Add ability to control SSH server status (default: on)
This commit is contained in:
1 parent
086937b84f
commit
33344743b0
3 files changed
+10
-1
No files matched your search
+7
-1
@@ -5,10 +5,16 @@ openssh:
|
||||
pkg.installed:
|
||||
- name: {{ openssh.server }}
|
||||
{% endif %}
|
||||
{% if openssh.sshd_enable is sameas true %}
|
||||
service.running:
|
||||
- enable: True
|
||||
- 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 %}
|
||||
Reference in new issue
Block a user