ganeti

Safe HaskellSafe-Infered

Ganeti.Runtime

Description

Implementation of the runtime configuration details.

Synopsis

Documentation

data MiscGroup Source

Constructors

DaemonsGroup 
AdminGroup 

Instances

Bounded MiscGroup 
Enum MiscGroup 
Eq MiscGroup 
Ord MiscGroup 
Show MiscGroup 

type RuntimeEnts = (Map GanetiDaemon UserID, Map GanetiGroup GroupID)Source

daemonName :: GanetiDaemon -> StringSource

Returns the daemon name for a given daemon.

daemonOnlyOnMaster :: GanetiDaemon -> BoolSource

Returns whether the daemon only runs on the master node.

daemonUser :: GanetiDaemon -> StringSource

Returns the configured user name for a daemon.

daemonGroup :: GanetiGroup -> StringSource

Returns the configured group for a daemon.

daemonLogFile :: GanetiDaemon -> IO FilePathSource

Returns the log file for a daemon.

daemonPidFile :: GanetiDaemon -> IO FilePathSource

Returns the pid file name for a daemon.

getEnts :: IO (Result RuntimeEnts)Source

Computes the group/user maps.

verifyDaemonUser :: GanetiDaemon -> RuntimeEnts -> IO ()Source

Checks whether a daemon runs as the right user.

checkUidMatch :: String -> UserID -> UserID -> IO ()Source