This gist use packer to deploy a CoreOS image, compliant with Scaleway:
- Retrieve and install SSH keys
- Retrieve some metadata (Public/Private IP, hostname, tags ... available in
/run/metadata/coreos
) - Set hostname using Scaleway instance name
- Retrieve and use cloudinit configuration (not tested)
- Send a boot signal to Scaleway
Unfortunately, this image cannot works with Baremetal instances (and not tested with ARM).
Thanks to https://github.com/jbonachera/scaleway-coreos for the main ideas ... but I made this because I prefer using official bash scripts to talk with the metadata server.