From fdb48b1dd11b802d0c2124fb3833672ca87ab870 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Apr 2014 02:27:17 -0400 Subject: api doc improvements --- Propellor/Property/Ssh.hs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Propellor/Property/Ssh.hs') diff --git a/Propellor/Property/Ssh.hs b/Propellor/Property/Ssh.hs index 28fe45f6..36766f56 100644 --- a/Propellor/Property/Ssh.hs +++ b/Propellor/Property/Ssh.hs @@ -1,4 +1,11 @@ -module Propellor.Property.Ssh where +module Propellor.Property.Ssh ( + setSshdConfig, + permitRootLogin, + passwordAuthentication, + hasAuthorizedKeys, + restartSshd, + uniqueHostKeys +) where import Propellor import qualified Propellor.Property.File as File @@ -38,8 +45,9 @@ hasAuthorizedKeys = go <=< homedir restartSshd :: Property restartSshd = cmdProperty "service" ["ssh", "restart"] -{- | Blow away existing host keys and make new ones. Use a flag - - file to prevent doing this more than once. -} +-- | Blows away existing host keys and make new ones. +-- Useful for systems installed from an image that might reuse host keys. +-- A flag file is used to only ever do this once. uniqueHostKeys :: Property uniqueHostKeys = flagFile prop "/etc/ssh/.unique_host_keys" `onChange` restartSshd -- cgit v1.2.3