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

Safe HaskellNone




authorizedKey :: UserName -> String -> Property Source

Ensures that a user's authorized_keys contains a line. Any other lines in the file are preserved as-is.

randomHostKeys :: Property Source

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 :: IsContext c => c -> Property Source

Sets all types of ssh host keys from the privdata.

hostKey :: IsContext c => SshKeyType -> c -> Property Source

Sets a single ssh host key from the privdata.

keyImported :: IsContext c => SshKeyType -> UserName -> c -> Property Source

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

knownHost :: [Host] -> HostName -> UserName -> Property Source

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

authorizedKeys :: IsContext c => UserName -> c -> Property Source

Makes a user have authorized_keys from the PrivData

This removes any other lines from the file.

listenPort :: Int -> RevertableProperty Source

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.