propellor-0.9.1: property-based host configuration management in haskell

Safe HaskellNone




setSshdConfig :: String -> Bool -> PropertySource

randomHostKeys :: PropertySource

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.

hostKeys :: Context -> PropertySource

Sets all types of ssh host keys from the privdata.

hostKey :: SshKeyType -> Context -> PropertySource

Sets a single ssh host key from the privdata.

keyImported :: SshKeyType -> UserName -> Context -> PropertySource

Sets up a user with a ssh private key and public key pair from the PrivData.

knownHost :: [Host] -> HostName -> UserName -> PropertySource

Puts some host's ssh public key into the known_hosts file for a user.

authorizedKeys :: UserName -> Context -> PropertySource

Makes a user have authorized_keys from the PrivData

listenPort :: Int -> RevertablePropertySource

Makes the ssh server listen on a given port, in addition to any other ports it is configured to listen on.

Revert to prevent it listening on a particular port.