V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
LCD
V2EX  ›  Python

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

  •  1
     
  •   LCD · 291 天前 · 870 次点击
    这是一个创建于 291 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    8 条回复    2023-07-13 12:11:12 +08:00
    tangds99
        1
    tangds99  
       291 天前
    联盟链的 fabric ?推荐微众的 fisco bcos
    LCD
        2
    LCD  
    OP
       291 天前
    @tangds99 这个不太了解,应该不是您说的。
    LCD
        3
    LCD  
    OP
       291 天前
    目前找到类似的自动化运维工具 rexify ,https://www.rexify.org/
    dayeye2006199
        4
    dayeye2006199  
       291 天前
    这个玩意儿不是个 python 包吗,
    那不是 pip install fabric2 即可?
    busier
        5
    busier  
       290 天前 via iPhone
    fabric2 用 python2 的把,直接搞 fabric3 。pip3 内安装!
    zhlxsh
        6
    zhlxsh  
       290 天前 via iPhone
    推荐用 paramiko 库,想要的功能自己实现
    makerbi
        7
    makerbi  
       289 天前
    @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
        8
    LCD  
    OP
       289 天前 via Android
    @makerbi it is hard to choice for a new user
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   876 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:57 · PVG 05:57 · LAX 14:57 · JFK 17:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.