From deda66755b5f4075909db3a5dcf45abb2c941f29 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 19 Mar 2017 11:22:05 -0700 Subject: add Apt.hostMirrorIs --- src/Propellor/Property/Apt.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Propellor/Property/Apt.hs') diff --git a/src/Propellor/Property/Apt.hs b/src/Propellor/Property/Apt.hs index abec1357..009b426b 100644 --- a/src/Propellor/Property/Apt.hs +++ b/src/Propellor/Property/Apt.hs @@ -20,6 +20,11 @@ import Propellor.Types.Info data HostMirror = HostMirror Url deriving (Eq, Show, Typeable) +-- | Indicate host's preferred apt mirror (e.g. an apt cacher on the host's LAN) +hostMirrorIs :: Url -> Property (HasInfo + UnixLike) +hostMirrorIs u = pureInfoProperty (u ++ " apt mirror selected") + (InfoVal (HostMirror u)) + getHostMirror :: Propellor Url getHostMirror = do mirrorInfo <- getHostMirrorInfo -- cgit v1.2.3