summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2018-03-13 18:25:00 +0100
committerJulien Dessaux2018-03-13 18:25:00 +0100
commit8a33ae8d02af665e2f91a3445f4d719eecdbe325 (patch)
treef0e20d7c06cdaa9d8aebc992a061a881b3d5823b
parentMoved to a more traditional update.cf mechanism without overwriting the built... (diff)
downloadmasterfiles-8a33ae8d02af665e2f91a3445f4d719eecdbe325.tar.gz
masterfiles-8a33ae8d02af665e2f91a3445f4d719eecdbe325.tar.bz2
masterfiles-8a33ae8d02af665e2f91a3445f4d719eecdbe325.zip
Ensure sshd is running on linux servers
Diffstat (limited to '')
-rw-r--r--services/applications/sshd.cf5
1 files changed, 5 insertions, 0 deletions
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";