Skip to content

Commit a733b2c

Browse files
committed
Update README with examples of local usage
1 parent b0ad5c2 commit a733b2c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,25 @@ helper script, installed in `/usr/local/bin`
1414
In order to use the fabric scripts, you will need to enable ssh-agent
1515
forwarding when you connect to the jumpboxes. For example:
1616

17-
ssh -A jumpbox-1.management.production
17+
$ ssh -A jumpbox-1.management.production
18+
19+
## Local usage
20+
21+
You can also use the fabric scripts from an external machine with a small amount
22+
of setup on your part. You will need to install Fabric,
23+
24+
$ pip install fabric
25+
26+
configure it (see [the fabric documentation][fabdoc] for more examples),
27+
28+
$ echo 'user = jimbob' >> ~/.fabricrc
29+
30+
and then you should be able to run it:
31+
32+
$ fab preview all hosts
33+
...
34+
$ fab preview class:frontend do:'uname -a'
35+
...
36+
37+
[fabdoc]: http://docs.fabfile.org/en/latest/usage/fab.html
38+

0 commit comments

Comments
 (0)