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

MaintainerNicolas Schodet <nico@ni.fr.eu.org>
Safe HaskellNone
LanguageHaskell98

Propellor.Property.Lvm

Description

Support for LVM logical volumes.

Synopsis

Documentation

lvFormatted :: Eep -> LogicalVolume -> DataSize -> Fs -> RevertableProperty DebianLike UnixLike Source #

Create or resize a logical volume, and make sure it is formatted. When reverted, remove the logical volume.

Example use:

import qualified Propellor.Property.Lvm as Lvm
import qualified Propellor.Property.Partition as Partition
Lvm.lvFormatted Lvm.YesReallyFormatLogicalVolume
        (Lvm.LogicalVolume "test" (Lvm.VolumeGroup "vg0")) "16m"
        Partition.EXT4

If size and filesystem match, nothing is done.

Volume group must have been created already.

installed :: RevertableProperty DebianLike DebianLike Source #

Make sure needed tools are installed.

newtype VolumeGroup Source #

Constructors

VolumeGroup String