propellor-2.15.0: property-based host configuration management in haskell

Safe HaskellNone
LanguageHaskell98

Propellor.Property.Apt

Synopsis

Documentation

securityUpdates :: SourcesGenerator Source

Only available for Stable and Testing

stdSourcesList :: Property NoInfo Source

Makes sources.list have a standard content using the mirror CDN, with the Debian suite configured by the os.

Since the CDN is sometimes unreliable, also adds backup lines using kernel.org.

stdSourcesList' :: DebianSuite -> [SourcesGenerator] -> Property NoInfo Source

Adds additional sources.list generators.

Note that if a Property needs to enable an apt source, it's better to do so via a separate file in /etc/apt/sources.list.d/

installedMin :: [Package] -> Property NoInfo Source

Minimal install of package, without recommends.

buildDepIn :: FilePath -> Property NoInfo Source

Installs the build deps for the source package unpacked in the specifed directory, with a dummy package also installed so that autoRemove won't remove them.

robustly :: Combines (Property i) (Property NoInfo) => Property i -> Property i Source

Package installation may fail becuse the archive has changed. Run an update in that case and retry.

isInstalled' :: [Package] -> IO [Bool] Source

Note that the order of the returned list will not always correspond to the order of the input list. The number of items may even vary. If apt does not know about a package at all, it will not be included in the result list.

unattendedUpgrades :: RevertableProperty NoInfo Source

Enables unattended upgrades. Revert to disable.

reConfigure :: Package -> [(DebconfTemplate, DebconfTemplateType, DebconfTemplateValue)] -> Property NoInfo Source

Preseeds debconf values and reconfigures the package so it takes effect.

serviceInstalledRunning :: Package -> Property NoInfo Source

Ensures that a service is installed and running.

Assumes that there is a 1:1 mapping between service names and apt package names.

data AptKey Source

Constructors

AptKey 

Fields

keyname :: String
 
pubkey :: String
 

cacheCleaned :: Property NoInfo Source

Cleans apt's cache of downloaded packages to avoid using up disk space.

hasForeignArch :: String -> Property NoInfo Source

Add a foreign architecture to dpkg and apt.