<br><br><div class="gmail_quote">On Fri, Aug 19, 2011 at 11:11 AM, Henry Garner <span dir="ltr"><<a href="mailto:henry.garner@mac.com">henry.garner@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 18 Aug 2011, at 23:50, Viktor Tron wrote:<br>
> After I found this impressive piece of work <a href="https://github.com/fnichol/chef-rvm" target="_blank">https://github.com/fnichol/chef-rvm</a><br>
> I am considering switching to Chef.<br>
<br>
</div>I've recently explored a similar set up (Ubuntu 10.04, RVM, Chef). Fletcher's project is impressive, but still quite new. The API was still changing as little as a fortnight ago.<br>
<br>
In the end <a href="http://help.opscode.com/kb/troubleshooting/may-i-use-rvm-to-install-ruby-andor-rubygems-that-the-chef-client-runs-under" target="_blank">http://help.opscode.com/kb/troubleshooting/may-i-use-rvm-to-install-ruby-andor-rubygems-that-the-chef-client-runs-under</a> convinced me to write my own bootstrap script to install ruby and rubygems from source before any of the chef magic happens.<br>

<div class="im"><br></div></blockquote><div>thanks Henry, does this not defeat the whole purpose kindof?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">
> - do you use your provision agent for deployment? which allows for better management of rake tasks, cron, db privileges, etc<br>
<br>
</div>I'm still using capistrano for deployment, but my deploy script just executes chef-client on the remote server and leaves chef to synchronise everything.<br></blockquote><div><br>interesting.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
The chef deploy resource has a few different callbacks which allow you to symlink your shared directories, install your bundle, call whenever to update your crontab, etc.<br>
<div class="im"><br></div></blockquote><div><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
> - if you use public recipes/modules, how do you manage their updates?<br>
<br>
</div>I haven't needed to do this yet, but since your chef-repo is under version control all the normal rules apply.<br>
<div class="im"><br>
> - any pointers to good resources for your typical rails stack using puppet/chef would be fab<br>
<br>
</div>Opscode hosts an 'application' cookbook which aims to be a bit of a swiss army knife for deploying all manner of apps. I found it to be the single most helpful resource for figuring out how to deploy my app and dependencies (I ended up hacking it about to write my own application-specific cookbook as a learning exercise). <a href="https://github.com/opscode/cookbooks/tree/master/application" target="_blank">https://github.com/opscode/cookbooks/tree/master/application</a><br>

<br></blockquote><div><br>so you wrote your own? is this what you meant by chef deploy resource?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

I'm sure Stephen and John would appreciate me pointing out that their books on Chef and Puppet are recently released & imminent respectively. Mine is in the post :-)<br>
<font color="#888888"><br></font></blockquote><div><br>wow, thanks for that<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#888888">
Henry<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br>