THIS BLOG HAS MOVED TO blog.fearoffish.com

Cheese Sprinkles

April 16th, 2007

I've been working on a set of tools for the Cheese Private Servers soon to be available (actually they're already available to a few select guinnea pigs), and I thought I'd screencast the functionality as it stands.

Cheese can:

  • Add nginx virtual hosts
  • Replace nginx virtual hosts
  • Remove nginx virtual hosts
  • Create subversion repositories
  • Remove subversion repositories
  • Set access rights on subversion repositories
  • Create mysql/pgsql databases
  • Delete mysql/pgsql databases
  • Add a pre-configured mongrel_cluster.yml file to your subversion repos

Cheese Tools will be able to:

  • Configure monit to watch your sites and svnserve
  • Configure a scheduled backup of your sites and source to s3
  • Install all of the managed applications
  • Do all this remotely

So without further ado, here's the screencast:

Download link

You can check out the source code, as I've made this available under the MIT license by running this command:

svn co svn://fearofcheese.co.uk/cheese-tools

Update:

This is now available as a gem, docs are here: http://cheese.rubyforge.org/cheese/, it might take a while to propogate all the mirrors though, so be patient or download the gem directly from rubyforge.

No comments on the lack of tests, this was serious hackware until recently and has been put together in a short space of time and isn't ready for release yet, but with the requests for the tools I thought I'd release them anyway. Bear in mind that the code is in flux right now, so it may break regularly.

If you have any improvements you'd like to add please do send me patches...I'd wait till the test suite is in place first though.

2 Responses to “Cheese Sprinkles”

  1. JGeiger said on:

    I like the idea of what you're doing, as I might have to do something similar coming up. Why are you putting the vhost configurations into the main nginx.conf file instead of creating one for each named host, and just including that?

    Also, dunno if it exists, but is it possible to specify the ports you'd like to use for the mongrels?

  2. Jamie van Dyke said on:

    I was initially planning on doing more complex vhost parsing, but you're right about the includes and that's how it will be done in future.

    As for specifying ports for mongrel, no you can't, but it wouldn't be much work to change it to handle that. I'll put these both in the todos.

Leave a Reply

Jamie van Dyke

Jamie van Dyke has been a Rails developer since the beginning of 2005, working with some of the major players in the web market. He also played a large part in the documenting of Rails for the Caboose Documentation Project and teaches others on his blog and in training sessions around the world. Jamie is a core Rails contributor, and the publisher of multiple gems and plugins.

I'm a father of 2, living in a little village called Skipton which is in North Yorkshire, England. Anything else you'd like to know you can ask. Check out my photo and info at the caboose facebook or my flickr page.

Jamie is also unsure why he must write a Bio in third person, and doesn't really have a fear of fish, he just dislikes the taste and smell of them.

< Recommend me on Working With Rails >

Search


Email:     


or    Subscribe in a Reader




 

Recommended Services

Basecamp project management and collaboration

Recommended Books