ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.Runtime

Description

Implementation of the runtime configuration details.

Synopsis

Documentation

data MiscGroup #

Constructors

DaemonsGroup 
AdminGroup 

Instances

Instances details
Bounded MiscGroup # 
Instance details

Defined in Ganeti.Runtime

Enum MiscGroup # 
Instance details

Defined in Ganeti.Runtime

Show MiscGroup # 
Instance details

Defined in Ganeti.Runtime

Methods

showsPrec :: Int -> MiscGroup -> ShowS

show :: MiscGroup -> String

showList :: [MiscGroup] -> ShowS

Eq MiscGroup # 
Instance details

Defined in Ganeti.Runtime

Methods

(==) :: MiscGroup -> MiscGroup -> Bool

(/=) :: MiscGroup -> MiscGroup -> Bool

Ord MiscGroup # 
Instance details

Defined in Ganeti.Runtime

Methods

compare :: MiscGroup -> MiscGroup -> Ordering

(<) :: MiscGroup -> MiscGroup -> Bool

(<=) :: MiscGroup -> MiscGroup -> Bool

(>) :: MiscGroup -> MiscGroup -> Bool

(>=) :: MiscGroup -> MiscGroup -> Bool

max :: MiscGroup -> MiscGroup -> MiscGroup

min :: MiscGroup -> MiscGroup -> MiscGroup

data GanetiGroup #

Instances

Instances details
Show GanetiGroup # 
Instance details

Defined in Ganeti.Runtime

Methods

showsPrec :: Int -> GanetiGroup -> ShowS

show :: GanetiGroup -> String

showList :: [GanetiGroup] -> ShowS

Eq GanetiGroup # 
Instance details

Defined in Ganeti.Runtime

Methods

(==) :: GanetiGroup -> GanetiGroup -> Bool

(/=) :: GanetiGroup -> GanetiGroup -> Bool

Ord GanetiGroup # 
Instance details

Defined in Ganeti.Runtime

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 #

Constructors

AccessLog 
ErrorLog 

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.