fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] rsync via local


From: Jeff Forcier
Subject: Re: [Fab-user] rsync via local
Date: Sun, 12 Jul 2009 13:03:20 -0400

Hi Thomas,

In that case, I'm afraid there's nothing that can be done right now;
outside of prompts -- see below -- there's just no way for local() to
know when a program needs your password.

However, I *do* want to get improved prompt detection in for Fabric
1.0, and we may well try to splice in password support like we
currently have for connection and sudo prompts. So you would be given
the opportunity to type in the password when a prompt comes up, or
whack Enter to submit the current env.password value.

Again, though, that's slated for 1.0, and we're currently working on
getting 0.9 out the door, so it may be a while. Your best bet for now
is almost definitely to use the --password-file argument to rsync, or
the RSYNC_PASSWORD shell env var -- see rsync's manpage for more info
:)

Best,
Jeff

On Sun, Jul 12, 2009 at 3:10 AM, Thomas Bikeev<address@hidden> wrote:
> Hi Jeff,
>
> you are right: it seems that local indeed behaves same in 0.01 and 0.9
>
> (I am really confused now since I can not reproduce that what I thought was
> a successful behaviour.)
>
> My second thought was I have used local_per_host with success but also this
> would prompt me for the pw in the scenario where key-based authentication is
> not possible.
>
> So I will dig some more. I guess in a nutshell my problem is:
>
> "How to pass externally stored pw to local/rsync command?"
>
> Regards, Thomas
>
>
>
> On 10 Jul 2009, at 23:11, Jeff Forcier wrote:
>
>> Hi Thomas,
>>
>> Could you post some/all of your fabfile and output? (Feel free to mail
>> me directly if it's anything sensitive.) As far as I can tell,
>> rsync_project has not changed in any significant fashion, and never
>> did use any connection-related stuff or fab_password (unless there's
>> something I am not seeing.)
>>
>> If I can see exactly what you're doing it might make things clearer as
>> to what is actually going on.
>>
>> Thanks,
>> Jeff
>>
>> On Fri, Jul 10, 2009 at 4:54 PM, Thomas Bikeev<address@hidden>
>> wrote:
>>>
>>> Hello List,
>>>
>>> I am using fab to rsync some directory to the remote servers. These
>>> servers
>>> (unfortunately) do not support key-based authentication and previously
>>> (in
>>> 0.1) fab_password was doing his job just fine.
>>> Now in 0.9 fabric.contrib.project.rsync_project calls "local" rsync and I
>>> am
>>> being prompted for the password for each server in the group.
>>>
>>> Is there any way to make rsync_project to accept env.password or similar?
>>>
>>> Cheers, Thomas
>>>
>>>
>>> _______________________________________________
>>> Fab-user mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]