summaryrefslogtreecommitdiff
path: root/doc/forum/Supported_OS
diff options
context:
space:
mode:
authorJoey Hess2014-12-07 12:04:30 -0400
committerJoey Hess2014-12-07 12:04:30 -0400
commitb7da90a91516c0d496c44459ed03009e58f39233 (patch)
treebdb7e5e1c39fb4b16ec7731ca40b8d310a6de3a3 /doc/forum/Supported_OS
parent31e13031fe4bd34c943ca141c314fadcb39c9fac (diff)
comment
Diffstat (limited to 'doc/forum/Supported_OS')
-rw-r--r--doc/forum/Supported_OS/comment_1_f324bed708305e2667bd00f80544dd90._comment25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/forum/Supported_OS/comment_1_f324bed708305e2667bd00f80544dd90._comment b/doc/forum/Supported_OS/comment_1_f324bed708305e2667bd00f80544dd90._comment
new file mode 100644
index 00000000..094fa678
--- /dev/null
+++ b/doc/forum/Supported_OS/comment_1_f324bed708305e2667bd00f80544dd90._comment
@@ -0,0 +1,25 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2014-12-07T15:58:03Z"
+ content="""
+I have heard of propellor being used on OSX. Probably that user wrote their
+own code for OSX specific stuff.
+
+Propellor properites can be parameterized by OS. Currently it has support
+for Debian and some untested support for Ubuntu. A property can be parameterized
+like this:
+
+[[!format haskell """
+foo :: Property
+foo = property "foo" withOS desc $ \o -> case o of
+ (Just (System (Debian _) _)) -> ensureProperty fooDebian
+ (Just (System (Ubuntu _) _)) -> ensureProperty fooUbuntu
+
+The first step for adding a new OS will be to modify <http://hackage.haskell.org/package/propellor-1.0.0/docs/Propellor-Types-OS.html>.
+Compilation will then warn about all OS parameterized properties that
+need to be updated to support your added OS, and it can be taken from there.
+
+I'll accept reasonable patches to support other OS's.
+"""]]
+