[Fab-user] Re: specifying login and password?

2009-02-18 Thread Timothee Besset
Timothee Besset wrote: Hello, New user .. finding documentation very, very scarce .. Is there a way to specify login and password along with the hosts list? I want to use fab to configure a fairly large number of machines with different access settings. Best, TTimo For reference,

[Fab-user] specifying login and password?

2009-02-18 Thread Timothee Besset
Hello, New user .. finding documentation very, very scarce .. Is there a way to specify login and password along with the hosts list? I want to use fab to configure a fairly large number of machines with different access settings. Best, TTimo ___

Re: [Fab-user] specifying login and password?

2009-02-18 Thread Nicolas Steinmetz
2009/2/18 Timothee Besset tt...@idsoftware.com Hello, New user .. finding documentation very, very scarce .. Is there a way to specify login and password along with the hosts list? I want to use fab to configure a fairly large number of machines with different access settings. One

Re: [Fab-user] Re: abort function doesn't get fab_host

2009-02-18 Thread Jeff Forcier
Well, the core problem here is that if you're calling abort() in a situation where you haven't connected to a host, then naturally config.fab_host will be undefined. It should be relatively simple to update abort() so that it checks for this use case and simply omits the fab_host part of the

Re: [Fab-user] specifying login and password?

2009-02-18 Thread Jeff Forcier
Hi Timothee, Nicolas is largely correct, the best way to handle this is to use SSH key-based authentication, which then means you won't need to be prompted for any passwords during the connection phase. However, that's only a partial solution because you'll still need to do each password in the

Re: [Fab-user] specifying login and password?

2009-02-18 Thread Leah Culver
I'm also very interested in this issue since my project has different users that are allowed to deploy (but aren't the root user). Are you considering bubbling up the password prompt? I wouldn't mind having to enter my password for each operation that requires it and then no passwords really need

Re: [Fab-user] specifying login and password?

2009-02-18 Thread Timothee Besset
Jeff Forcier wrote: Hi Timothee, Nicolas is largely correct, the best way to handle this is to use SSH key-based authentication, which then means you won't need to be prompted for any passwords during the connection phase. However, that's only a partial solution because you'll still need to

[Fab-user] trivial put test case fails?

2009-02-18 Thread Timothee Besset
I am trying to run the following test case: def test_put(): Test a file put. put( '/home/timo/bar', '/root/bar' ) /home/timo/bar exists on my local system, I am logging in as root into the remote host just fine, but the put fails: $ fab test_put Fabric v. 0.1.0. Running test_put...

Re: [Fab-user] Re: abort function doesn't get fab_host

2009-02-18 Thread Alex Robbins
Correct, no exceptions, just the literal $(fab_host). I'm very new to fabric and could easily be wrong but... I'm reading through the source, and I don't think I see any way that abort could be called with fab_host defined. It would have to be called from inside a function that connects right? And

Re: [Fab-user] trivial put test case fails?

2009-02-18 Thread Timothee Besset
Mike Panchenko wrote: /root/bar doesn't exist on the remote host would be my guess. Mike. Ouch .. didn't realize I could not change the name and had to specify a directory. It would be nice if this supported the same semantics as 'cp' .. TTimo On Wed, Feb 18, 2009 at 1:03 PM, Timothee

Re: [Fab-user] Re: abort function doesn't get fab_host

2009-02-18 Thread Jeff Forcier
On Wed, Feb 18, 2009 at 4:05 PM, Alex Robbins alexander.j.robb...@gmail.com wrote: Correct, no exceptions, just the literal $(fab_host). I'm very new to fabric and could easily be wrong but... I'm reading through the source, and I don't think I see any way that abort could be called with

Re: [Fab-user] specifying login and password?

2009-02-18 Thread Christian Vest Hansen
On Wed, Feb 18, 2009 at 11:16 PM, Timothee Besset tt...@idsoftware.com wrote: Well, here are the main problems I see: It doesn't cover one password per host, which is the case I was mostly concerned with. It doesn't do password based sudo either. It does allow distinct passwords per host,