TritonDataCenter / sdc-vmtools-lx-brand

The guest tools for lx-brand images
https://docs.joyent.com/images/container-native-linux
Mozilla Public License 2.0
7 stars 10 forks source link

hostname not set via metadata #6

Open chorrell opened 9 years ago

chorrell commented 9 years ago

Passing a metadata "hostname" value does not set the hostname for an lx-brand container.

The guest tools should retrieve that value, if available, and set it accordingly in the container

sjorge commented 9 years ago

Perhaps it should set hostname and domainname? (assuming a fqdn is provded) Probably needs some decent though as the docs for RHEL (centos) and debian (debian/ubuntu) seem to not agree on best practices: http://serverfault.com/questions/331936/setting-the-hostname-fqdn-or-short-name

razamatan commented 8 years ago

there should be something equivalent done for dhcp interfaces in lx zones where the /etc/hostname.${iface} is set to "inet $(mdata-get sdc:hostnaem)".