summaryrefslogtreecommitdiff
path: root/doc/automated_spins
diff options
context:
space:
mode:
authorJoey Hess2016-03-19 15:01:34 -0400
committerJoey Hess2016-03-19 15:01:34 -0400
commit8385201fde44447289b054754a422d58bf16ae10 (patch)
tree56a2049ab894a26d4bdb70a87cc1d4a35634e0cc /doc/automated_spins
parent9f4f219cc74b6cf304434a74d0a661a9300257ad (diff)
comment
Diffstat (limited to 'doc/automated_spins')
-rw-r--r--doc/automated_spins/comment_2_d0b3cfce5e37727f5b17c14d0f4214d2._comment27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/automated_spins/comment_2_d0b3cfce5e37727f5b17c14d0f4214d2._comment b/doc/automated_spins/comment_2_d0b3cfce5e37727f5b17c14d0f4214d2._comment
new file mode 100644
index 00000000..c95ae691
--- /dev/null
+++ b/doc/automated_spins/comment_2_d0b3cfce5e37727f5b17c14d0f4214d2._comment
@@ -0,0 +1,27 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2016-03-19T18:49:26Z"
+ content="""
+Yes, that was the main reason to add
+[Propellor.Property.Concurrent](http://hackage.haskell.org/package/propellor-2.16.0/docs/Propellor-Property-Concurrent.html)
+
+It should be able to parallelize any properties using the combinators in
+there. Including `Propellor.Property.Conductor.conducts`
+
+For example:
+
+ conducts hostfoo `concurrently` conducts hostbar `concurrently` conducts hostbaz
+
+Or, something like this to conduct a whole list of hosts in parallel
+(have not tried to compile it, may need minor tweaking):
+
+ concurrentList (pure 10) "conduct web servers in parallel" $
+ PropList $ map toProp $ conduct webservers
+
+ webservers :: [Host]
+
+Note that concurrent output will be serialized, so you'll probably see propellor
+running live on the first host and then the ones that were conducted in the
+background will have their output dumped the console later on.
+"""]]