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
- Host: GitHub
- URL: https://github.com/heavenshell/sunzi-sudo
- Owner: heavenshell
- Created: 2012-03-17T14:54:05.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-17T16:12:16.000Z (over 14 years ago)
- Last Synced: 2025-03-06T02:12:11.502Z (over 1 year ago)
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```