Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Chroot = Chroot FilePath System BuilderConf Host
- debootstrapped :: System -> DebootstrapConfig -> FilePath -> Chroot
- provisioned :: Chroot -> RevertableProperty
- provisioned' :: (Property -> Property) -> Chroot -> Bool -> RevertableProperty
- propigateChrootInfo :: Chroot -> Property -> Property
- propellChroot :: Chroot -> ([String] -> CreateProcess) -> Bool -> Property
- chain :: [Host] -> CmdLine -> IO ()
Documentation
debootstrapped :: System -> DebootstrapConfig -> FilePath -> Chroot Source
Defines a Chroot at the given location, built with debootstrap.
Properties can be added to configure the Chroot.
debootstrapped (System (Debian Unstable) "amd64") Debootstrap.BuildD "/srv/chroot/ghc-dev" & Apt.installed ["ghc", "haskell-platform"] & ...
provisioned :: Chroot -> RevertableProperty Source
Ensures that the chroot exists and is provisioned according to its properties.
Reverting this property removes the chroot. Note that it does not ensure that any processes that might be running inside the chroot are stopped.
Internal use
provisioned' :: (Property -> Property) -> Chroot -> Bool -> RevertableProperty Source
propigateChrootInfo :: Chroot -> Property -> Property Source
propellChroot :: Chroot -> ([String] -> CreateProcess) -> Bool -> Property Source
Propellor is run inside the chroot to provision it.