ganeti
Safe HaskellSafe

Ganeti.Path

Description

Path-related helper functions.

Synopsis

Documentation

pjoin :: IO String -> String -> IO String Source #

Simple helper to concat two paths.

getRootDir :: IO FilePath Source #

Returns the root directory, which can be either the real root or the virtual root.

addNodePrefix :: FilePath -> IO FilePath Source #

Prefixes a path with the current root directory.

dataDir :: IO FilePath Source #

Directory for data.

dataDirP :: FilePath -> IO FilePath Source #

Helper for building on top of dataDir (internal).

runDir :: IO FilePath Source #

Directory for runtime files.

logDir :: IO FilePath Source #

Directory for log files.

socketDir :: IO FilePath Source #

Directory for Unix sockets.

livelockDir :: IO FilePath Source #

Directory for the jobs' livelocks.

luxidMessageDir :: IO FilePath Source #

Directory for luxid to write messages to running jobs, like requests to change the priority.

livelockFile :: FilePath -> IO FilePath Source #

A helper for building a job's livelock file. It prepends livelockDir to a given filename.

defaultQuerySocket :: IO FilePath Source #

The default LUXI socket for queries.

defaultWConfdSocket :: IO FilePath Source #

The default WConfD socket for queries.

defaultMetadSocket :: IO FilePath Source #

The default MetaD socket for communication.

confdHmacKey :: IO FilePath Source #

Path to file containing confd's HMAC key.

clusterConfFile :: IO FilePath Source #

Path to cluster configuration file.

lockStatusFile :: IO FilePath Source #

Path to the file representing the lock status.

tempResStatusFile :: IO FilePath Source #

Path to the file representing the lock status.

watcherPauseFile :: IO FilePath Source #

Path to the watcher pause file.

nodedCertFile :: IO FilePath Source #

Path to the noded certificate.

nodedClientCertFile :: IO FilePath Source #

Path to the noded client certificate.

queueDir :: IO FilePath Source #

Job queue directory.

jobQueueSerialFile :: IO FilePath Source #

Job queue serial file.

jobQueueLockFile :: IO FilePath Source #

Job queue lock file

jobQueueDrainFile :: IO FilePath Source #

Job queue drain file

jobQueueArchiveSubDir :: FilePath Source #

Job queue archive directory.

instanceReasonDir :: IO FilePath Source #

Directory containing the reason trails for the last change of status of instances.

getInstReasonFilename :: String -> IO FilePath Source #

The path of the file containing the reason trail for an instance, given the instance name.

jqueueExecutorPy :: IO FilePath Source #

The path to the Python executable for starting jobs.