Hacker News new | ask | show | jobs
by stevelosh 5472 days ago
I'd say Puppet is useful even if you're running one server, especially when you use it with Vagrant. If you use it for EVERY bit of setup on your server (no manually installing packages!) you can be sure that your development VM and production server are both the same environment.

Puppet is declarative, Fabric is imperative. With Puppet I can say:

    Make sure the directory /var/www/foo exists with permission 755 and owner foo.
    Make sure the nginx vhost "foo.conf" exists in sites-enabled with content X, and this depends on /var/www/foo existing.
With Fabric you have to handle all the edge cases. What if /var/www/foo already exists? What if it's owned by someone else? You have to manually code all the 'mkdir' and 'chmod' commands instead of just saying "this directory should exist like this".

Right now there's no public example repo, but I'm planning on cleaning up and open-sourcing our Puppet/Django/Vagrant skeleton this week so we can use it during the Django Dash.

1 comments

I'd be interested in seeing this once you're done. Is there some github profile I can watch or somewhere that you plan to put it?