The approach that I have taken is to use a mini web server in combination with wget on the RancherOS.
I have the cloud-congfig.yml on my desktop (under git), run python’s embedded web server (
python -m SimpleHTTPServer ) - that will expose the current directory over the web server.
Then after booting the VM from the Rancher ISO I do
And save the result to a file that is then used during install
sudo ros install -c cloud-config.yml -d /dev/sda
The above was the start - I’ve now moved on to using php and templating the cloud-config to support different configurations (including the deployment of various services (consul, rancher agent,dnsmasq - with different configs for “master” and “node”) out of the box) that are accessed using URL varaibles.
I could probably document with examples my workflow if anyone is really interested…