From 8a33ae8d02af665e2f91a3445f4d719eecdbe325 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 13 Mar 2018 18:25:00 +0100 Subject: Ensure sshd is running on linux servers --- services/applications/sshd.cf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'services') diff --git a/services/applications/sshd.cf b/services/applications/sshd.cf index c4448a4..bb452e4 100644 --- a/services/applications/sshd.cf +++ b/services/applications/sshd.cf @@ -21,6 +21,11 @@ bundle agent sshd commands: freebsd.!sshd_service_running:: "/usr/sbin/service sshd start" classes => if_repaired("sshd_service_repaired"); + services: + linux:: + "sshd" + service_policy => "start", + classes => if_repaired("sshd_service_repaired"); reports: any:: "$(this.bundle): /root/.ssh directory repaired" ifvarclass => "sshd_ssh_dir_repaired"; -- cgit v1.2.3