-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
# gsh Documentation | ||
|
||
`gsh` supports some basic CRUD-like operations: put/get/delete. | ||
You can add specifc types of items to your gsh inventory, by using [`make`](make.md): | ||
- [`Hosts`](hosts.md) | ||
- [`Groups`](groups.md) | ||
- [`Scripts`](scripts.md) | ||
- [`Files`](files.md) | ||
|
||
Here is a list of the CRUD-like operations: | ||
- [`make`](make.md) | ||
- [`show`](show.md) | ||
- [`delete`](delete.md) | ||
|
||
You can also execute scripts and copy files on remote hosts: | ||
- [`execute`](execute.md) | ||
- [`copy`](copy.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Execute (TODO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Files (TODO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Groups (TODO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Hosts | ||
A host represents an ssh server running on a host on the network. | ||
[`Groups`](groups.md) can be created to represent groups of hosts. | ||
|
||
Aliases: | ||
- `host` | ||
- `hosts` | ||
- `node` | ||
- `nodes` | ||
|
||
## Making, Updating, Deleting, and Listing Hosts | ||
Your hosts inventory is empty until you have added a host.<br /> | ||
These are the types operations you can do with a host: | ||
- [`make`](make.md) # Make or Update a host in inventory | ||
- [`delete`](delete.md) # Delete a host from inventory | ||
- [`show`](show.md) # Show or List hosts | ||
- [`execute`](execute.md) # Execute scripts on hosts | ||
- [`copy`](copy.md) # Copy files/scripts to hosts | ||
|
||
## Special Labels | ||
|
||
Hosts use special [`labels`](labels.md), please provide an `address` label when adding a host to your inventory. | ||
Supplying an `address` label allows `gsh` to connect to the servers address via ssh. | ||
|
||
## Examples: | ||
|
||
```bash | ||
$ # making a host with labels | ||
$ gsh make host dev0 address=dev0.local develop=true project=foo | ||
╔══════╕ Set! | ||
║ Host └──────────╮ | ||
╿ Name : Labels | ||
└ dev0 : address=dev0.local develop=true project=foo | ||
``` | ||
```bash | ||
$ # updating the same host with different labels | ||
$ gsh make host dev0 address=dev0.local develop=true project=bar | ||
╔══════╕ Set! | ||
║ Host └──────────╮ | ||
╿ Name : Labels | ||
└ dev0 : address=dev0.local develop=true project=bar | ||
``` | ||
```bash | ||
$ # deleting a host | ||
$ gsh del host demo1 | ||
╔══════╕ Deleted! | ||
║ Host └──────────╮ | ||
╿ Name : Labels | ||
└ demo1 : address=demo1.local demo=true | ||
``` |