Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Apr 17, 2021
1 parent 525cfe1 commit ee3ee63
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "groot"
version = "0.2.1"
version = "0.3.0"
description = "The coolest guardian of the galaxy!"
repository = "https://github.com/fao89/groot"
authors = ["Fabricio Aguiar <[email protected]>"]
Expand Down
41 changes: 30 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,48 @@
# I am Groot!
![groot](https://www.redringtones.com/wp-content/uploads/2019/04/i-am-groot-ringtone.jpg)

## Required variables
Please have a `.env` file with the following variables:
- `SERVER.HOST`: The host address e.g. `127.0.0.1`
- `SERVER.PORT`: The host port e.g. `3030`
- `DATABASE_URL`: The postgres DB URL e.g. `postgres://groot:groot@localhost:5432/groot`

## Downloading
```console
$ curl -L https://github.com/fao89/groot/releases/download/0.3.0/groot-linux-amd64 -o groot
$ chmod +x groot
```
## Sync roles or collections

Mirror:
```
$ curl -L https://github.com/fao89/groot/releases/download/0.2.1/groot-linux-amd64 -o groot
$ chmod +x groot
- Client-side:
```console
$ ./groot sync --content <roles | collections>
```

From requirements.yml
- Server-side:
```console
$ curl -X POST http://127.0.0.1:3030/sync/<roles | collections>
```
$ curl -L https://github.com/fao89/groot/releases/download/0.2.1/groot-linux-amd64 -o groot
$ chmod +x groot

From requirements.yml
- Client-side:
```console
$ ./groot sync --requirement requirements.yml
```

## Serve content
- Server-side:
```console
$ curl -X POST -F '[email protected]' http://127.0.0.1:3030/sync/
```
$ curl -L https://github.com/fao89/groot/releases/download/0.2.1/groot-linux-amd64 -o groot

## Serving content
```console
$ curl -L https://github.com/fao89/groot/releases/download/0.3.0/groot-linux-amd64 -o groot
$ chmod +x groot
$ RUST_LOG=groot::api ./groot --serve
$ ./groot --serve
```
Install role/collection from groot:
```
$ ansible-galaxy <role/collection> install <namespace>.<name> -c -s http://127.0.0.1:3030/ --no-deps
```console
$ ansible-galaxy <role | collection> install <namespace>.<name> -c -s http://127.0.0.1:3030/
```

0 comments on commit ee3ee63

Please sign in to comment.