iPXE with cloud-config SSH keys


I followed this www.vultr.com/docs/install-rancher-os-via-ipxe and it works perfectly. However I would also like to add SSH Keys at install time.

I have read and followed (http://docs.rancher.com/os/running-rancheros/server/ipxe/ but it doesn’t work.

Here is my complete iPXE script and yes my cloud-config file is valid YAML validated ahttp://yaml-online-parser.appspot.com/


  • ssh-dss AAAAB3Nza…`

Boot script:

# Boots RancherOS in Ramdisk with persistent storage on disk /dev/vda

# Location of Kernel/Initrd images
set base-url http://releases.rancher.com/os/latest

kernel $/vmlinuz rancher.state.formatzero=true rancher.state.autoformat=[/dev/vda] rancher.cloud_init.datasources=[url:http://mydot.com/cloud-config]

initrd $/initrd


Any ideas would be appreciated.

Is the cloud-config prefixed with #cloud-config? I believe it expects that prefix.