summaryrefslogtreecommitdiff
path: root/Propellor/Types/OS.hs
diff options
context:
space:
mode:
authorJoey Hess2014-04-13 15:34:01 -0400
committerJoey Hess2014-04-13 15:34:01 -0400
commit95ac5163da904780ae166c2bf3a0addcb8d8870e (patch)
treec476ec0951db984c2784a9e5ba7370bac333e64a /Propellor/Types/OS.hs
parent576acfed33abfae2065354431100701713e83a23 (diff)
Properties can now be satisfied differently on different operating systems.
Diffstat (limited to 'Propellor/Types/OS.hs')
-rw-r--r--Propellor/Types/OS.hs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Propellor/Types/OS.hs b/Propellor/Types/OS.hs
new file mode 100644
index 00000000..5b0e376d
--- /dev/null
+++ b/Propellor/Types/OS.hs
@@ -0,0 +1,19 @@
+module Propellor.Types.OS where
+
+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)
+
+type Release = String
+type Architecture = String