We're using mongo replica sets with chef but, like you, don't yet
have a good solution for initializing the replica set. I was headed
down the path of having chef create a .js file that could be passed
into mongo shell. I'd be interested in seeing what you've come up
with though. Perhaps we could collaborate on a solution? Here's a link to our mongodb cookbook - https://github.com/customink/cookbooks Thanks, Nathen On 1/21/11 6:49 PM, Micah Wedemeyer wrote: " type="cite">Is anyone doing Mongo sharding or replica sets with chef? As far as I can tell, you need to run some commands interactively (ie. rs.initialize) in the mongo shell to initialize a replica set. I think I could probably do this with chef by piping the commands directly to the shell, but is there an easier way? Some kind of config file settings I could use? Otherwise, I need to wait for the server to come up, send it the command, and then hope that everything works. |
Archive powered by MHonArc 2.6.16.