~cloud-init-dev/cloud-init/trunk

Viewing all changes in revision 1049.

  • Committer: Scott Moser
  • Date: 2015-01-15 15:23:47 UTC
  • mfrom: (1048.1.1 cloud-init)
  • Revision ID: smoser@ubuntu.com-20150115152347-umpoyy2bst9l9ud8
Use the GCE short hostname.

Google Compute Engine fqdn hostnames are usually longer than 64 characters.
This causes issues with many tools (often Java based).

Note that per gethostname(2):
  POSIX.1-2001 guarantees that "Host names (not including the terminating null
  byte) are limed to HOST_NAME_MAX bytes".  On Linux, HOST_NAME_MAX is defined
  with the value 64.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: