https://rancher.com/ logo
Title
l

limited-eye-27484

08/01/2022, 11:48 PM
Is there a correct value to use in the Cloud Config YAML so that my Rancher provisioned vpshere VM gets the correct hostname? I’ve tried something like
local-hostname: {name}
and
hostname: {name}
in the cloud-config, and this seems to work as Rancher somehow knows to set the node name to whatever it’s being provisioned with, however my provisioned systems cloud-config gets a value that looks like:
local-hostname:
    name: null
or
hostname:
    name: null
a

agreeable-oil-87482

08/02/2022, 10:38 AM
The cloud-config field in node/pool templates are for userdata. Rancher will automatically generate the cloud-config data for each node to set the hostname
Is the vm's name not correctly being set to the hostname in the OS?