请教一下各位有 fabric2 的使用例子或文档吗?官方的看着很混乱

351 天前
 LCD

由于想批量 ssh 操作服务器或者网络设备,比对了以下 ansible ,zabbix ,感觉从 fabric 入手好像简单些,没想到连第一次安装都报错,最好一番折腾终于跑出自己想要的结果,过程虽然快乐,但很耗时间。不得不吐槽以下,目前发现新版本是 github 的,但 ubuntu 默认是 fabric2 跟官网的一样,相当奇怪阿。 譬如第一坑,sudo apt-get install fabric 后,还要 sudo apt-get install python3-decorator 才行,一言难尽。

921 次点击
所在节点    Python
8 条回复
tangds99
351 天前
联盟链的 fabric ?推荐微众的 fisco bcos
LCD
351 天前
@tangds99 这个不太了解,应该不是您说的。
LCD
351 天前
目前找到类似的自动化运维工具 rexify ,https://www.rexify.org/
dayeye2006199
351 天前
这个玩意儿不是个 python 包吗,
那不是 pip install fabric2 即可?
busier
350 天前
fabric2 用 python2 的把,直接搞 fabric3 。pip3 内安装!
zhlxsh
350 天前
推荐用 paramiko 库,想要的功能自己实现
makerbi
349 天前
@busier
fabric and fabric2 vs fabric3
Unfortunately, the fabric3 entry on PyPI is an unauthorized fork of Fabric 1.x which we do not control. Once modern Fabric gets up to 3.x, 4.x etc, we’ll likely continue distributing it via both fabric and fabric2 for convenience; there will never be any official fabric3, fabric4 etc.

In other words, fabric2 is purely there to help users of 1.x cross the 2.0 “major rewrite” barrier; future major versions will not be large rewrites and will only have small sets of backward incompatibilities.
LCD
349 天前
@makerbi it is hard to choice for a new user

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/955996

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX