| Safe Haskell | Safe-Infered |
|---|
Ganeti.Runtime
Description
Implementation of the runtime configuration details.
- data GanetiDaemon
- = GanetiMasterd
- | GanetiNoded
- | GanetiRapi
- | GanetiConfd
- | GanetiLuxid
- | GanetiMond
- data MiscGroup
- data GanetiGroup
- type RuntimeEnts = (Map GanetiDaemon UserID, Map GanetiGroup GroupID)
- daemonName :: GanetiDaemon -> String
- daemonOnlyOnMaster :: GanetiDaemon -> Bool
- daemonLogBase :: GanetiDaemon -> String
- daemonUser :: GanetiDaemon -> String
- daemonGroup :: GanetiGroup -> String
- daemonLogFile :: GanetiDaemon -> IO FilePath
- daemonPidFile :: GanetiDaemon -> IO FilePath
- allGroups :: [GanetiGroup]
- ignoreDoesNotExistErrors :: IO a -> IO (Result a)
- getEnts :: IO (Result RuntimeEnts)
- verifyDaemonUser :: GanetiDaemon -> RuntimeEnts -> IO ()
- checkUidMatch :: String -> UserID -> UserID -> IO ()
Documentation
data GanetiDaemon Source
Constructors
| GanetiMasterd | |
| GanetiNoded | |
| GanetiRapi | |
| GanetiConfd | |
| GanetiLuxid | |
| GanetiMond |
Instances
| Bounded GanetiDaemon | |
| Enum GanetiDaemon | |
| Eq GanetiDaemon | |
| Ord GanetiDaemon | |
| Show GanetiDaemon |
Constructors
| DaemonsGroup | |
| AdminGroup |
data GanetiGroup Source
Constructors
| DaemonGroup GanetiDaemon | |
| ExtraGroup MiscGroup |
Instances
| Eq GanetiGroup | |
| Ord GanetiGroup | |
| Show GanetiGroup |
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.
daemonLogBase :: GanetiDaemon -> StringSource
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.
ignoreDoesNotExistErrors :: IO a -> IO (Result a)Source
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