Safe Haskell | None |
---|
Ganeti.Ssconf
Description
Implementation of the Ganeti Ssconf interface.
- maxFileSize :: Int
- sSFilePrefix :: FilePath
- data SSKey
- = SSClusterName
- | SSClusterTags
- | SSFileStorageDir
- | SSSharedFileStorageDir
- | SSMasterCandidates
- | SSMasterCandidatesIps
- | SSMasterIp
- | SSMasterNetdev
- | SSMasterNetmask
- | SSMasterNode
- | SSNodeList
- | SSNodePrimaryIps
- | SSNodeSecondaryIps
- | SSOfflineNodes
- | SSOnlineNodes
- | SSPrimaryIpFamily
- | SSInstanceList
- | SSReleaseVersion
- | SSHypervisorList
- | SSMaintainNodeHealth
- | SSUidPool
- | SSNodegroups
- sSKeyFromRaw :: forall m. Monad m => String -> m SSKey
- sSKeyToRaw :: SSKey -> String
- keyToFilename :: FilePath -> SSKey -> FilePath
- catchIOErrors :: Maybe a -> IO a -> IO (Result a)
- readSSConfFile :: Maybe FilePath -> Maybe String -> SSKey -> IO (Result String)
- parseIPFamily :: Int -> Result Family
- getPrimaryIPFamily :: Maybe FilePath -> IO (Result Family)
- getMasterCandidatesIps :: Maybe FilePath -> IO (Result [String])
Documentation
maxFileSize :: IntSource
sSFilePrefix :: FilePathSource
ssconf file prefix, re-exported from Constants.
Constructors
sSKeyFromRaw :: forall m. Monad m => String -> m SSKeySource
sSKeyToRaw :: SSKey -> StringSource
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.