From 91ce5b61cf509a0ea81d9f73b5e1eb3633d82676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 29 Sep 2009 23:31:31 +0300 Subject: [PATCH] Added ssh::disable class which disables ssh server. --- ssh/manifests/init.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ssh/manifests/init.pp b/ssh/manifests/init.pp index 7578f45..71e2f92 100644 --- a/ssh/manifests/init.pp +++ b/ssh/manifests/init.pp @@ -21,3 +21,15 @@ class ssh::known_hosts { } } + + +# Disable SSH server. +# +class ssh::disable { + + service { "sshd": + ensure => stopped, + enable => false, + } + +}