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
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
# 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
-
Create
/etc/one/ione.yaml
-
Fill in host and insecure (and vnc/vmrc data to add VNC support)
host: api.your.nocloud:8080 insecure: false SUNSTONE_VNC_TOKENS_DIR: /var/lib/one/sunstone_vnc_tokens SUNSTONE_VMRC_TOKENS_DIR: /var/lib/one/sunstone_vmrc_tokens/
-
Run
nocloud-ione test
. Result must betrue
. -
Run
nocloud-ione hooks
- Run
nocloud-ione hooks cleanup
- Delete binary
nocloud-ione-vnc
gives an API endpoint to generate VNC tokens consumable by Driver VNC Proxy and Tunnel.
- Get the Archive from Releases page
- Unpack it
- Run
sh install.sh
(install.sh
is included into Archive) - Fill
/etc/one/ione.yaml
Configure nginx. This API must be available as <ONe RPC2 endpoint>/vnc
(for example https://one.example.com/RPC2/vnc
).
You could achieve this by adding:
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 *;
}
- Stop daemon
systemctl stop nocloud-ione-vnc
- Delete
/usr/lib/systemd/system/nocloud-ione-vnc.service
- Delete binary (
/usr/bin/nocloud-ione-vnc
)