On the rancher server I’d like to pull the env vars for host registration so I can automate with another system adding additional hosts without a human.
Its actually very similar to Automating installation of rancher/server and ranger/agent (my system will be a RightScale Server Array instead of an AWS AS group).
I’d just like to get it locally on the rancher server, effectively retrieving:
#!/bin/sh export CATTLE_REGISTRATION_ACCESS_KEY="registrationToken" export CATTLE_REGISTRATION_SECRET_KEY="B0B1DF27C2EA977B3B0C:1437886800000:KywjS1FC1Qh6NpiHnUH2hr6aEjw" export CATTLE_URL="http://myrancherserver:8080/v1" export DETECTED_CATTLE_AGENT_IP="22.214.171.124"
I assume there will need to be a command without auth to pull it out of rancher or its DB or potentially we could have rancher server dump into a file somewhere, say
If its not possible yet in some form, certainly a feature request from me