path: root/doc/forum/passing_host_address_dynamically_to_propellor
diff options
authorJoey Hess2015-05-29 10:09:22 -0400
committerJoey Hess2015-05-29 10:09:22 -0400
commit5b0c4d1f1a3f8e61ff2d44dcef39ccd553463920 (patch)
treeb262d64227d13d08cd24de3789234658ae63b7a2 /doc/forum/passing_host_address_dynamically_to_propellor
parent0f606c170fc7b7ae06efab26f797d366baeb5fb7 (diff)
Diffstat (limited to 'doc/forum/passing_host_address_dynamically_to_propellor')
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/forum/passing_host_address_dynamically_to_propellor/comment_1_1c5d5b59f2325a2f4e06d09a9900007f._comment b/doc/forum/passing_host_address_dynamically_to_propellor/comment_1_1c5d5b59f2325a2f4e06d09a9900007f._comment
new file mode 100644
index 00000000..57b2a63b
--- /dev/null
+++ b/doc/forum/passing_host_address_dynamically_to_propellor/comment_1_1c5d5b59f2325a2f4e06d09a9900007f._comment
@@ -0,0 +1,25 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2015-05-29T14:05:10Z"
+ content="""
+What's the use case here?
+I think maybe you're trying to deploy basically the same set of properties
+to multiple hosts. And perhaps don't want to have the list of hosts in the
+config.hs file. If that's the goal, it seems you could accomplish it by
+writing a function like:
+ stdHost :: IPAddr -> Host
+Or more generally,
+ stdHost :: Property HasInfo -> Host
+And then you can map over the set of IP addresses to generate the the
+[Host] list for propellor. Or could even read a data file (that would need
+to be checked into the git repo) and use it to constuct the [Host] list at
+But maybe I misunderstood the use case..