Change The Hostname in Rancher OS

How to change the hostname for a RancherOS host

Edit this file: /var/lib/rancher/conf/cloud-config.d/user_config.yml and modify the hostname: parameter, or add it if missing. For instance:

hostname: test.com