SamEureka/balenaRancher

use sdk to create fleet variables

Closed this issue · 2 comments

Task: Automate the creation of K3S_TOKEN and K3S_URL as Fleet Variables.

The token string is located in a file at /var/lib/rancher/k3s/server/node-token (it has a line break that needs to be stripped out)

The ip address can be retrieved locally or from the balena.api. I think the api might be the easiest to use.

work started in create-fleet-var

closed by #9