fab-user
[Top][All Lists]
Advanced

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

Re: Fabric ssh not working as before


From: Nikunj Mistry
Subject: Re: Fabric ssh not working as before
Date: Fri, 11 Sep 2020 22:07:11 +0530

Dear jeff,

Thanks for your mail. What I mean is the workflow of software has changed totally. The meaning of upgrade is old features should work as it is and new features should be added. But in Fabric 2 my old fab file is not working. Below is my fab file example for your reference.


fabfile example:

#from fabric.api import *

#env[root@host1, root@host2, root@host3:2022, root@host4, root@host5, root@host6]

#def ds():
#    run('df -h')

I used to run this from my terminal like

$ fab ds > disk_space.txt

$ Enter your password :

Now this is not working. I checked some youtube videos about new fabric2 tutorials.


But i am not satisfied with the result fabric 1 was best.


Now i am using parallel-ssh




Regards
Nikunj





On Fri, Sep 11, 2020 at 9:47 PM Jeff Forcier <jeff@bitprophet.org> wrote:
Nikunj,

Can you provide some details about how Fabric 2 isn't working properly? The complication angle is known - we haven't gotten it up to par with Fabric 1 yet in that regard but plan to. But if there are places where the basic use case of running a remote command is broken, that would be good to know!

Thanks,
Jeff

On Fri, Sep 11, 2020 at 11:02 AM Brandon Whaley <redkrieg@gmail.com> wrote:
`pip install fabric==1.14` to install the last version of fabric 1.
If you're using Python 3 you need to either upgrade your fabfile to
fabric2 syntax or for now try to use the fabric3 side project.

On Fri, Sep 11, 2020 at 10:30 AM Nikunj Mistry <nikunj.m@infraroot.cloud> wrote:
>
> Dear fabric team,
>
> I am fabric 1 user for my daily task. Since fabric2 update i am unable to peform the same task
>
> I am system admin on daily basis i need to ssh multiple servers to check disk space
>
>
> Now in fabric2 things have got too complicated and not working properly
>



--
Jeff Forcier
Unix sysadmin; Python engineer
http://bitprophet.org


--
Regards,

Nikunj Mistry

reply via email to

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