ganeti

Safe HaskellNone

Ganeti.Ssconf

Description

Implementation of the Ganeti Ssconf interface.

Synopsis

Documentation

sSFilePrefix :: FilePathSource

ssconf file prefix, re-exported from Constants.

sSKeyFromRaw :: forall m. Monad m => String -> m SSKeySource

sSKeyToRaw :: SSKey -> StringSource

keyToFilenameSource

Arguments

:: FilePath

Config path root

-> SSKey

Ssconf key

-> FilePath

Full file name

Convert a ssconf key into a (full) file path.

catchIOErrors :: Maybe a -> IO a -> IO (Result a)Source

readSSConfFile :: Maybe FilePath -> Maybe String -> SSKey -> IO (Result String)Source

parseIPFamily :: Int -> Result FamilySource

getPrimaryIPFamily :: Maybe FilePath -> IO (Result Family)Source

Read the primary IP family.

getMasterCandidatesIps :: Maybe FilePath -> IO (Result [String])Source

Read the list of IP addresses of the master candidates of the cluster.

getMasterNode :: Maybe FilePath -> IO (Result String)Source

Read the name of the master node.