From d35929876f673979940552b9b8f2a258b8ed7b86 Mon Sep 17 00:00:00 2001 From: Mark Eggert Date: Thu, 2 Jan 2014 23:50:59 -0600 Subject: [PATCH] Modifying OpenSSH formula service name on RedHat since it is called 'sshd', not 'ssh' --- openssh/init.sls | 4 ++++ 1 file changed, 4 insertions(+) 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