by fakeempire · 15y ago · 0 comments
I noticed he used puppet and fabric in this article so it made me interested what puppet it doing better for him than fabric.
Is there a repository of examples? Like just bootstrapping a debian box with nginx/apache/postgres (or mysql)?
Thanks!
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]http://ericholscher.com/blog/2010/nov/8/building-django-app-...