An open API service indexing awesome lists of open source software.

https://github.com/heavenshell/sunzi-sudo

Wrapper for Sunzi using Python Fabric
https://github.com/heavenshell/sunzi-sudo

Last synced: 3 months ago
JSON representation

Wrapper for Sunzi using Python Fabric

Awesome Lists containing this project

README

          

Sunzi-sudo
==========

Sunzi-sudo is a wrapper for [Sunzi](https://github.com/kenn/sunzi).

Quickstart
----------

Install

```bash
$ git clone https://github.com/heavensehell/sunzi-sudo.git
```

Sunzi-sudo depends on Python Fabric and PyYAML.

```bash
$ sudo pip install fabric
$ sudo pip install PyYAML
```

Usage

```bash
$ fab sunzi:foo@example.com
```

If you use [Bundler](http://gembundler.com/), you can add bundle option.

```bash
$ fab sunzi:bundle,foo@example.com
```

Deploy to multipul hosts.

```bash
$ fab sunzi:bundle,user=foo -H a.example.com b.example.com
```

This command deploys to `foo@a.example.com` and `foo@b.example.com`.

You can also type following.

```bash
$ fab sunzi:bundle -u foo -H 1.example.com 2.example.com
```