summaryrefslogtreecommitdiff
path: root/Propellor/Types/OS.hs
blob: 23cc8a29af5a97034a8d29491f8815664828078e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module Propellor.Types.OS where

type HostName = String
type UserName = String
type GroupName = String

-- | High level descritption of a operating system.
data System = System Distribution Architecture
	deriving (Show, Eq)

data Distribution
	= Debian DebianSuite
	| Ubuntu Release
	deriving (Show, Eq)

data DebianSuite = Experimental | Unstable | Testing | Stable | DebianRelease Release
	deriving (Show, Eq)

-- | The release that currently corresponds to stable.
stableRelease :: DebianSuite
stableRelease = DebianRelease "wheezy"

isStable :: DebianSuite -> Bool
isStable s = s == Stable || s == stableRelease

type Release = String
type Architecture = String