| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ganeti.Runtime
Description
Implementation of the runtime configuration details.
Synopsis
- data GanetiDaemon
- data MiscGroup
- data GanetiGroup
- data RuntimeEnts = RuntimeEnts {
- reUserToUid :: Map GanetiDaemon UserID
- reUidToUser :: Map UserID String
- reGroupToGid :: Map GanetiGroup GroupID
- reGidToGroup :: Map GroupID String
- daemonName :: GanetiDaemon -> String
- daemonOnlyOnMaster :: GanetiDaemon -> Bool
- daemonLogBase :: GanetiDaemon -> String
- daemonUser :: GanetiDaemon -> String
- daemonGroup :: GanetiGroup -> String
- data ExtraLogReason
- daemonLogFile :: GanetiDaemon -> IO FilePath
- daemonsExtraLogbase :: GanetiDaemon -> ExtraLogReason -> String
- daemonsExtraLogFile :: GanetiDaemon -> ExtraLogReason -> IO FilePath
- daemonPidFile :: GanetiDaemon -> IO FilePath
- getEnts :: Error e => ResultT e IO RuntimeEnts
- verifyDaemonUser :: GanetiDaemon -> RuntimeEnts -> IO ()
Documentation
data GanetiDaemon #
Constructors
| GanetiMasterd | |
| GanetiMetad | |
| GanetiNoded | |
| GanetiRapi | |
| GanetiConfd | |
| GanetiWConfd | |
| GanetiKvmd | |
| GanetiLuxid | |
| GanetiMond |
Instances
Constructors
| DaemonsGroup | |
| AdminGroup |
Instances
| Bounded MiscGroup # | |
Defined in Ganeti.Runtime | |
| Enum MiscGroup # | |
Defined in Ganeti.Runtime | |
| Show MiscGroup # | |
| Eq MiscGroup # | |
| Ord MiscGroup # | |
Defined in Ganeti.Runtime | |
data GanetiGroup #
Constructors
| DaemonGroup GanetiDaemon | |
| ExtraGroup MiscGroup |
Instances
| Show GanetiGroup # | |
Defined in Ganeti.Runtime Methods showsPrec :: Int -> GanetiGroup -> ShowS show :: GanetiGroup -> String showList :: [GanetiGroup] -> ShowS | |
| Eq GanetiGroup # | |
Defined in Ganeti.Runtime | |
| Ord GanetiGroup # | |
Defined in Ganeti.Runtime Methods compare :: GanetiGroup -> GanetiGroup -> Ordering (<) :: GanetiGroup -> GanetiGroup -> Bool (<=) :: GanetiGroup -> GanetiGroup -> Bool (>) :: GanetiGroup -> GanetiGroup -> Bool (>=) :: GanetiGroup -> GanetiGroup -> Bool max :: GanetiGroup -> GanetiGroup -> GanetiGroup min :: GanetiGroup -> GanetiGroup -> GanetiGroup | |
data RuntimeEnts #
Constructors
| RuntimeEnts | |
Fields
| |
daemonName :: GanetiDaemon -> String #
Returns the daemon name for a given daemon.
daemonOnlyOnMaster :: GanetiDaemon -> Bool #
Returns whether the daemon only runs on the master node.
daemonLogBase :: GanetiDaemon -> String #
Returns the log file base for a daemon.
daemonUser :: GanetiDaemon -> String #
Returns the configured user name for a daemon.
daemonGroup :: GanetiGroup -> String #
Returns the configured group for a daemon.
data ExtraLogReason #
daemonLogFile :: GanetiDaemon -> IO FilePath #
Returns the log file for a daemon.
daemonsExtraLogbase :: GanetiDaemon -> ExtraLogReason -> String #
Some daemons might require more than one logfile. Specifically, right now only the Haskell http library "snap", used by the monitoring daemon, requires multiple log files.
daemonsExtraLogFile :: GanetiDaemon -> ExtraLogReason -> IO FilePath #
Returns the extra log files for a daemon.
daemonPidFile :: GanetiDaemon -> IO FilePath #
Returns the pid file name for a daemon.
getEnts :: Error e => ResultT e IO RuntimeEnts #
Computes the group/user maps.
verifyDaemonUser :: GanetiDaemon -> RuntimeEnts -> IO () #
Checks whether a daemon runs as the right user.