Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Mar 18, 2022
1 parent a301eb8 commit c23990e
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,33 @@ See `examples/templates/sp.yml` for an example services provider template you ca

or `examples/requests/sp.yml` for an example HTTP request body you can use with Postman, cURL

## Invoke IONe Method
## Setup Hook

Request schema is defined as:
### Get binary

```proto
message Request {
google.protobuf.Value action = 1;
repeated google.protobuf.Value params = 2;
}
```sh
# Get link from Releases page
wget https://github.com/slntopp/nocloud-driver-ione/releases/download/v0.0.0-r1/nocloud-ione-v0.0.0-r1-linux-amd64.tar.gz
# Unpack
tar -xvf nocloud-ione-v0.0.0-r1-linux-amd64.tar.gz
# Move binary to OpenNebula hooks dir (optional)
mv nocloud-ione ~oneadmin/remotes/hooks
```

Actions stands for method path as if you'd do requests to IONe REST-API. So resulting requests schemas are:

```jsonc
// IONe Method
{
"action": "ione/Method",
"params": [
arg0, arg1
]
}
// OpenNebula API Method
{
"action": "one.obj.method",
"params": [
object_id, arg0, arg1
]
}
```
### Configure

1. Create `/etc/one/ione.yaml`
2. Fill in host and insecure

```yaml
host: api.your.nocloud:8080
insecure: false
```

3. Run `nocloud-ione test`. Result must be `true`.
4. Run `nocloud-ione hooks`

### Uninstall

1. Run `nocloud-ione hooks cleanup`
2. Delete binary

0 comments on commit c23990e

Please sign in to comment.