Safe Haskell | None |
---|---|
Language | Haskell98 |
- pureInfoProperty :: Desc -> Info -> Property HasInfo
- askInfo :: (Info -> Val a) -> Propellor (Maybe a)
- os :: System -> Property HasInfo
- getOS :: Propellor (Maybe System)
- ipv4 :: String -> Property HasInfo
- ipv6 :: String -> Property HasInfo
- alias :: Domain -> Property HasInfo
- addDNS :: Record -> Property HasInfo
- hostMap :: [Host] -> Map HostName Host
- aliasMap :: [Host] -> Map HostName Host
- findHost :: [Host] -> HostName -> Maybe Host
- findHostNoAlias :: [Host] -> HostName -> Maybe Host
- findAlias :: [Host] -> HostName -> Maybe Host
- getAddresses :: Info -> [IPAddr]
- hostAddresses :: HostName -> [Host] -> [IPAddr]
Documentation
ipv4 :: String -> Property HasInfo Source
Indidate that a host has an A record in the DNS.
When propellor is used to deploy a DNS server for a domain, the hosts in the domain are found by looking for these and similar properites.
When propellor --spin is used to deploy a host, it checks if the host's IP Property matches the DNS. If the DNS is missing or out of date, the host will instead be contacted directly by IP address.
alias :: Domain -> Property HasInfo Source
Indicates another name for the host in the DNS.
When the host's ipv4/ipv6 addresses are known, the alias is set up to use their address, rather than using a CNAME. This avoids various problems with CNAMEs, and also means that when multiple hosts have the same alias, a DNS round-robin is automatically set up.
getAddresses :: Info -> [IPAddr] Source
hostAddresses :: HostName -> [Host] -> [IPAddr] Source