Greetings, I just found Puppet last night. Really wish that the discovery had been made last month before tons of late night messy bash scripts were written to help boot up an ec2 image.... With very little effort Puppet is now installed on my desktop as a server and one of my staging servers is able to call into the puppetmaster to run a very very simple manifest. So far I am super- duper impressed. After reading through most of the wiki there was finally hope that one could stay sane while managing a small cluster of ec2 instances. Taking a few small steps I put together two definitions that would build my apache vhost files for my static/php sites, as well as my mongrel_clusters/rails driven apps. Each definition works with its respective template and bam, I had all my vhost files being created. So far I am still very excited about Puppet. Before I take more steps, I have a few thoughts and questions to put out there, hoping that some may have already been down this road: A freshly booted ec2 image needs to do a bunch of stuff if it is going to be of any use for hosting sites/apps... 1. send out its ip address to some dynamic ip service. 2. setup apache with its vhosts 3. grab a DB backup from an s3 bucket and dump it into the database 4. grab sites from a s3 bucket and put them where the vhosts expect things to be 5. setup a bunch of rail applications, and startup some mongrel clusters 6. make sure everything went ok, and pad itself on the back I would love to hear if anyone has had any luck getting remote resources, ie files, from s3 using Puppet. Also wondering how well Capistrano plays with Puppet. I know Capistrano can run a nice setup command to build the proper structure, this much should be very easy. actually getting Capistrano to deploy an application could be a different story. Capistrano works on your local development machine out of a working directory of your application. In theory you could use the --file option and tell Capistrano not to look at config/deploy.rb for the tasks, but in the specified file. This could all for a set of custom Capistrano recipes to work well with Puppet with a little bit of work. Is this uncharted waters or has someone had some luck using Capistrano through Puppet? Working with Mongrel_Cluster_Ctr Puppet should be able to handle mongrel_clusters just like any other service. Anyone have luck with this?? Thanks for a wonderful tool, I am sure there will be more questions to come... Nick
On Feb 16, 2007, at 4:13 PM, Nicholas Mulder wrote:> Greetings, > > I just found Puppet last night. Really wish that the discovery had > been made last month before tons of late night messy bash scripts > were written to help boot up an ec2 image.... > > With very little effort Puppet is now installed on my desktop as a > server and one of my staging servers is able to call into the > puppetmaster to run a very very simple manifest. So far I am super- > duper impressed. After reading through most of the wiki there was > finally hope that one could stay sane while managing a small cluster > of ec2 instances.Heh, glad ot hear it. [...]> I would love to hear if anyone has had any luck getting remote > resources, ie files, from s3 using Puppet.AFAIK, no one has done anything with this. Puppet''s file source system isn''t currently pluggable, although I''d like it to be. You''d have to use an external tool to retrieve the file, and then trigger that tool with an exec or something.> Also wondering how well Capistrano plays with Puppet. [...] Is > this uncharted waters or has someone had some luck using > Capistrano through Puppet?AFAIK, this is uncharted territory but it''s something I''d really like to explore. I''ll do everything I can to help you here, but I''m not using Capistrano anywhere and I don''t have any Rails apps with which to use it.> Working with Mongrel_Cluster_Ctr Puppet should be able to handle > mongrel_clusters just like any other service. Anyone have luck with > this??It should work just like any other, and since I''m currently in the process of teaching Mongrel how to serve Puppet, I''m about to be more intimately familiar with Mongrel than I care to be. -- A computer lets you make more mistakes faster than any invention in human history--with the possible exceptions of handguns and tequila. -- Mitch Ratcliffe --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com