News for hackers. Stuff that matters.
Re:Fabric hits 1.0 by forsaken on Saturday March 05, 2011 @12:54PM (#2291902)
Changelog: http://docs.fabfile.org/en/1.0.0/changes/1.0.html

This is a major version, so note the backwards incompatible parts as well:

http://docs.fabfile.org/en/1.0.0/changes/1.0.html#backwards-...

Re:Fabric hits 1.0 by ajdecon on Saturday March 05, 2011 @03:23PM (#2292287)
I currently like pdsh (http://code.google.com/p/pdsh/) for doing remote sysadmin: it parallelizes very nicely, and I love being able to issue commands like "pdsh -w compute[000-100] yum update package" to manage hundreds of nodes at a time.

That said, I can see use cases for Fabric where you're implementing some complex logic in Python which you'd like to push out to your servers, rather than just doing simple shell commands or pre-pushing your scripts. But I can't tell how well Fabric parallelizes... being Python I'd expect it to be single-threaded :( , but I might be wrong.

Edit:typo

Re:Fabric hits 1.0 by acdha on Saturday March 05, 2011 @04:18PM (#2292463)
It's also useful once you get out of trivial shell-scripts and need things like sane error handling or data structures, shell chains or escaping, etc. I wrote something like pdsh in the early 2000s in Perl and almost always used it to launch scripts written in a real programming language for any non-trivial task - e.g. even that yum command gets tricky if there's any possible interactive prompting going on or you want to parse output.

Here's Fabric's parallelism ticket: http://code.fabfile.org/issues/show/19

Re:Fabric hits 1.0 by asksol on Saturday March 05, 2011 @04:22PM (#2292477)
oh, so bash is suddenly multi-threaded now? :)

python does multiprocessing just fine: http://docs.python.org/library/multiprocessing.html

Re:Fabric hits 1.0 by riffraff on Sunday March 06, 2011 @03:33AM (#2293802)
bash may not, but pdsh is (I personally used dsh, which also multiplexes ssh connections) and the child processes do not bear the lack of multithreadness of the parents :)
Re:Fabric hits 1.0 by tomazmuraus on Saturday March 05, 2011 @03:12PM (#2292251)
Nice to see a new release, but there is still no official support for a parallel execution :(

There are some forks with a parallel support, but all of the ones which I have tried are pretty buggy / incomplete.

I have signed up for a Fabric PyCon sprint, hopefully I can help with adding / finishing the parallel support.

Re:Fabric hits 1.0 by old-gregg on Saturday March 05, 2011 @04:32PM (#2292509)
Am I missing something? I thought we're were going to get parallel execution, @task decorator and nicer control over 'env' in 1.0? There was a post about it just a few days ago. Right now I don't see anything from that in 1.0
Re:Fabric hits 1.0 by mace on Saturday March 05, 2011 @04:45PM (#2292541)
You're referring to a fork of fabric that was posted to HN a few weeks ago: http://news.ycombinator.com/item?id=2250001

The author of that fork wants to contribute those changes back to the fabric project. But that did not happen before the 1.0 release.

Re:Fabric hits 1.0 by gecko on Saturday March 05, 2011 @04:44PM (#2292538)
That was a fork. While they'll hopefully get merged in, they're not currently in the official queue.
Re:Fabric hits 1.0 by sophacles on Saturday March 05, 2011 @04:55PM (#2292575)
There are implementations of those features that are and have been in the official queue for a while.
Re:Fabric hits 1.0 by niels on Saturday March 05, 2011 @02:31PM (#2292109)
I use Fabric both at work and for my own projects. It's really simple to use, and I especially like that each function automatically becomes a Fabric command. Makes it easy to do "fab test", "fab migrate"... etc.
Re:Fabric hits 1.0 by btucker on Saturday March 05, 2011 @01:41PM (#2291998)
Is Fabric basically capistrano implemented in python?
Re:Fabric hits 1.0 by igorgue on Saturday March 05, 2011 @01:42PM (#2292003)
Well, no, it's different, but the idea is the same...
Re:Fabric hits 1.0 by alnayyir on Saturday March 05, 2011 @01:50PM (#2292020)
Fabric is a little more "purpose agnostic" than Capistrano, although both are perfectly acceptable for the same basic range of tasks.
Re:Fabric hits 1.0 by igorgue on Saturday March 05, 2011 @01:45PM (#2292008)
Last time I used Fabric I switched to Capistrano, no need to use this Fabric since the language of your deployment scripts doesn't really matters.

Lately I want to experiment with Chef using blueprint [1]. What do you think?

[1]: http://devstructure.com/

Re:Fabric hits 1.0 by josegonzalez on Saturday March 05, 2011 @02:12PM (#2292071)
I've been using a simple Fabric script from http://ericholscher.com/blog/2010/nov/8/building-django-app-... to automate Chef deploys. Blueprint tried to install a lot of nonsense on my box, and I decided that learning Chef proper would be a much better investment of my time.
Re:Fabric hits 1.0 by howradical on Saturday March 05, 2011 @04:34PM (#2292514)
DevStructure co-founder here, sorry to hear about your experience. Not sure when you installed blueprint, but we've recently open-sourced it and it's been ported to python. Should require minimal "stuff" to use it. Let us know if you have any questions or problems and again my apologies.

https://github.com/devstructure/blueprint

Re:Fabric hits 1.0 by josegonzalez on Saturday March 05, 2011 @04:42PM (#2292533)
It was not a reflection on your product. FWIW, I tried it out about 3 weeks ago, using the setup.sh script. I'm not even in a position to critique Blueprint, as I was only migrating one single Linode instance to another, and not even anything complex.

Like you guys say, DevOps is hard.

Re:Fabric hits 1.0 by howradical on Saturday March 05, 2011 @06:30PM (#2292823)
Thanks for the clarification. We did open-source it last week (so you had an older version) and accounts are no longer required, you can download/build/run it. A lot easier to use should you choose to try again. If you need any help with the migration, we're always around the chatroom.
Re:Fabric hits 1.0 by sophacles on Saturday March 05, 2011 @04:57PM (#2292579)
There are plenty of cases where deployment script language matters. Usually they revolve around having lots of tools/objects/etc already written in a language, and want to incorporate them into your automation system. This is how I found fabric to begin with.
Re:Fabric hits 1.0 by thibaut_barrere on Saturday March 05, 2011 @02:55PM (#2292184)
If you are interested to learn chef-solo/vagrant, please see http://news.ycombinator.org/item?id=2292140 (which I just posted). I'm planning to write an e-book on the topic.