-
Committer:
Scott Moser
-
Date:
2010-07-07 15:26:37 UTC
-
Revision ID:
smoser@ubuntu.com-20100707152637-t1xtuac6p0on0zo5
manage hostname setting better (LP: #596993)
On EBS instances, a shutdown and later start would end up with a
different IP address.
In the case where the user has not modified /etc/hostname from its
original value (seeded by metadata's 'local-hostname'), then cloud-init
will again set the hostname and update /etc/hostname.
In the case where the user *has* modified /etc/hostname, it will remain
user managed.
Additionally, if /etc/cloud/cloud.cfg contains 'preserve_hostname' value
set to a True value, then /etc/hostname will not ever be touched.