diff --git a/openssh/init.sls b/openssh/init.sls index 25266b6..2acb85e 100644 --- a/openssh/init.sls +++ b/openssh/init.sls @@ -6,7 +6,11 @@ openssh: {% endif %} service.running: - enable: True + {% if grains['os_family'] == 'RedHat' %} + - name: sshd + {% else %} - name: ssh + {% endif %} - require: - pkg: openssh - file: sshd_banner