Support TokuMX drop in
Opened this issue · 3 comments
Hey,
I'd love to use this cookbook for its features, but I have to support TokuMX drop in replacement. I currently do this with a really hacky binary-in-cookbook solution, as there is no repo for AMI linux.
I wonder how difficult it would be to put this into this cookbook.
Currently my install recipe pretty much untars the tarball from tokutek, sets the config and puts a runit script up, all the other fun stuff is done manually (replication mainly)
any advice?
Looking at http://www.tokutek.com/tokumx-ce-download-packages/, it appears they have an apt-repo for debian/ubuntu users, and require manual download for rpm packages. I think it's reasonable to expect us to support (and document) installation from custom repos, and I'd consider supporting packages from arbitrary URLs.
I'm definitely not interested in supporting a tarball style install within the cookbook, but I'd really really like our stuff to be usable from a wrapper cookbook that installs in its own way.
Any chance we could see your recipe? Feel free to contact me out-of-band if you've got any proprietary stuff in it.
Just checking in on the results of this?
hey, totally forgot to follow up on this (me=ghost)
so i'm revisiting the mongo cookbook as we are finally moving the mongos, and i think what the java cookbook maintainers are doing makes sense here, too. source:
http://blog.secaserver.com/2013/08/linux-follow-download-wget/
with the help of a colleague (thx @lauripiisang), this poc should work:
wget -O - --keep-session-cookies \
--save-cookies cookies.txt \
http://www.tokutek.com/download/?file=tokumx-server-2.0.0-2.el6.x86_64.rpm && \
wget --load-cookies cookies.txt \
--content-disposition http://www.tokutek.com/download.php?df=1 && \
rm -f cookies.txt
this should be manageable via attributes for the various versions (here: centos 6 tokumx-server-2.0.0-2)