dtroyer / openwrt-packages

dt's OpenWRT packages
19 stars 9 forks source link

rc.cloud: compatible with hetzner #3

Open aparcar opened 2 years ago

aparcar commented 2 years ago

Hi, is rc.cloud compatible with Hetzner? Could you give an example on how to use it?

dtroyer commented 2 years ago

I'm not sure about Hetzner in particular, but rc.cloud knows how to get metadata from OpenStack and EC2 via both clouddrive and the metadata service at 169.254.169.254. The details of this are in rc.cloud-functions.

As far as using it, you need to pass in a user-data script when you create the VM. In OpenStack I do that with server create --user-data option. It only recognizes a user-data script though, not the YAML format.

Edit: Even without passing in userdata rc.local will do basics like setting the hostname and ssh key from the metadata if it find any.