propellor-5.17: property-based host configuration management in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Propellor.Property.Debootstrap

Synopsis

Documentation

data DebootstrapConfig Source #

A data type for debootstrap configuration. mempty is a default debootstrapped system.

Constructors

DefaultConfig 
MinBase 
BuilddD 
DebootstrapParam String 
UseEmulation 
DebootstrapProxy Url 
DebootstrapMirror Url 
UseOldGpgKeyring

Debootstrap using the keyring of old and removed gpg keys. This is needed to debootstrap ancient stable releases of Debian.

DebootstrapConfig :+ DebootstrapConfig 

built :: FilePath -> System -> DebootstrapConfig -> Property Linux Source #

Builds a chroot in the given directory using debootstrap.

The System can be any OS and architecture that debootstrap and the kernel support.

When the System is architecture that the kernel does not support, it can still be bootstrapped using emulation. This is determined by checking supportsArch, or can be configured with UseEmulation.

built' :: Property Linux -> FilePath -> System -> DebootstrapConfig -> Property Linux Source #

Like built, but uses the provided Property to install debootstrap.

installed :: RevertableProperty Linux Linux Source #

Ensures debootstrap is installed.

When necessary, falls back to installing debootstrap from source. Note that installation from source is done by downloading the tarball from a Debian mirror, with no cryptographic verification.