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

Safe HaskellNone




daemonRunning :: FilePath -> RevertableProperty NoInfo Source

Exports all git repos in a directory (that user nobody can read) using git-daemon, run from inetd.

Note that reverting this property does not remove or stop inetd.

cloned :: User -> RepoUrl -> FilePath -> Maybe Branch -> Property NoInfo Source

Specified git repository is cloned to the specified directory.

If the directory exists with some other content (either a non-git repository, or a git repository cloned from some other location), it will be recursively deleted first.

A branch can be specified, to check out.

repoConfigured :: FilePath -> (String, String) -> Property NoInfo Source

Set a key value pair in a git repo's configuration.

getRepoConfig :: FilePath -> String -> IO [String] Source

Gets the value that a key is set to in a git repo's configuration.

repoAcceptsNonFFs :: FilePath -> RevertableProperty NoInfo Source

Whether a repo accepts non-fast-forward pushes.

bareRepoDefaultBranch :: FilePath -> String -> Property NoInfo Source

Sets a bare repository's default branch, which will be checked out when cloning it.