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

MaintainerSean Whitton <spwhitton@spwhitton.name>
Safe HaskellNone
LanguageHaskell98

Propellor.Property.Ccache

Description

 

Synopsis

Documentation

hasCache :: Group -> Limit -> RevertableProperty DebianLike UnixLike Source #

Configures a ccache in varcache for a group

If you say

& (Group "foo") `Ccache.hasGroupCache`
	(Ccache.MaxSize "4G" <> Ccache.MaxFiles 10000)

you instruct propellor to create a ccache in varcache/ccache-foo owned and writeable by the foo group, with a maximum cache size of 4GB or 10000 files.

hasLimits :: FilePath -> Limit -> Property DebianLike Source #

Set limits on a given ccache

data Limit Source #

Limits on the size of a ccache

Constructors

MaxSize DataSize

The maximum size of the cache, as a string such as "4G"

MaxFiles Integer

The maximum number of files in the cache

NoLimit

A cache with no limit specified

Limit :+ Limit 

Instances

type DataSize = String Source #

A string that will be parsed to get a data size.

Examples: "100 megabytes" or "0.5tb"