Closed synhershko closed 8 years ago
Yeah, this is a bug I think. We'll need to add a depends on runit in the metadata and include_recipe 'runit::default'
in the service recipe. This is actually slightly tricky because I believeeee adding that recipe would break our use case internally (not sure though), since when we set up the service we have some network restrictions that might prevent runit::default from being able to work. I'll get a PR going by Tuesday.
Cool. Is there a workaround i could use? On Aug 31, 2014 7:12 PM, "Jake Davis" notifications@github.com wrote:
Yeah, this is a bug I think. We'll need to add a depends on runit in the metadata and include_recipe 'runit::default' in the service recipe. This is actually slightly tricky because I believeeee adding that recipe would break our use case internally (not sure though), since when we set up the service we have some network restrictions that might prevent runit::default from being able to work. I'll get a PR going by Tuesday.
— Reply to this email directly or view it on GitHub https://github.com/SimpleFinance/chef-zookeeper/issues/102#issuecomment-53992630 .
Yep. If you include_recipe 'runit::default'
anytime before you call the service recipe, you're good to go.
Worked like a charm. I think the best resolution for this is to define this cookbook as one that needs to be wrapped, and having doco about how to install it as a service. While at it, doco on installing Exhibitor would be nice to have too!
Other items I'm missing docs for (not Chef / ruby expert) is how / where to set ZK's myid (if at all?), how to point it at fellow ensemble members, and how to use discover_zookeepers
from other cookbooks (if it's still around at all?)
:+1: for more docs. This is definitely a cookbook meant for wrapping, along with the exhibitor cookbook.
Yo PRs accepted :) nah but I can try to work on this hopefully in the next couple of days. It definitely could use some improvements to the docs.
@jakedavis I'd be happy to help out, but currently grinding on some Archiva stuff :rage1:
Closing, as the README is pretty well-fleshed out now.
Especially for the service recipe (how-to + exhibitor support).
Running it now (using a wrapper cookbook here: https://github.com/synhershko/Isengard.Cookbooks/blob/master/isengard-zookeeper/recipes/as_service.rb) I get:
It may be broken, but more lilkely I'm missing something