Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slntopp/nocloud-driver-ione
IONe Driver for IONe
https://github.com/slntopp/nocloud-driver-ione
go nocloud opennebula
Last synced: 3 days ago
JSON representation
IONe Driver for IONe
- Host: GitHub
- URL: https://github.com/slntopp/nocloud-driver-ione
- Owner: slntopp
- License: apache-2.0
- Created: 2021-11-02T15:39:58.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T12:21:07.000Z (2 months ago)
- Last Synced: 2024-10-13T06:08:01.180Z (about 1 month ago)
- Topics: go, nocloud, opennebula
- Language: Go
- Homepage:
- Size: 11.1 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nocloud-driver-ione: IONe Driver for NoCloud
## Service Config
See `examples/templates/service.yml` for an example service template you can use with nocloud CLI
or `examples/requests/service.yml` for an example HTTP request body you can use with Postman, cURL
## Services Provider Config
See `examples/templates/sp.yml` for an example services provider template you can use with nocloud CLI
or `examples/requests/sp.yml` for an example HTTP request body you can use with Postman, cURL
## Setup Hook
### Get binary
```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
```### Configure
1. Create `/etc/one/ione.yaml`
2. Fill in host and insecure (and vnc/vmrc data to add VNC support)```yaml
host: api.your.nocloud:8080
insecure: falseSUNSTONE_VNC_TOKENS_DIR: /var/lib/one/sunstone_vnc_tokens
SUNSTONE_VMRC_TOKENS_DIR: /var/lib/one/sunstone_vmrc_tokens/
```3. Run `nocloud-ione test`. Result must be `true`.
4. Run `nocloud-ione hooks`### Uninstall
1. Run `nocloud-ione hooks cleanup`
2. Delete binary## Setup VNC
### Install & Configure
`nocloud-ione-vnc` gives an API endpoint to generate VNC tokens consumable by Driver VNC Proxy and Tunnel.
1. Get the Archive from Releases page
2. Unpack it
3. Run `sh install.sh` (`install.sh` is included into Archive)
4. Fill `/etc/one/ione.yaml`Configure nginx. This API must be available as `/vnc`(for example `https://one.example.com/RPC2/vnc`).
You could achieve this by adding:
```nginx
location /RPC2/vnc {
proxy_pass http://127.0.0.1:8010;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
add_header Access-Control-Allow-Origin *;
}
```### Uninstall
1. Stop daemon `systemctl stop nocloud-ione-vnc`
2. Delete `/usr/lib/systemd/system/nocloud-ione-vnc.service`
3. Delete binary (`/usr/bin/nocloud-ione-vnc`)