diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-07-07 11:26:37 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-07-07 11:26:37 -0400 |
commit | d76fbab6e770d5f93dab155030d9edb3ff583ea8 (patch) | |
tree | 851e97c85a982aace1dbdc3fd4ce8b1e46638fef /cloud.cfg | |
parent | 422f55437a773bf1896aa0d329f9079d885c5b62 (diff) | |
download | vyos-cloud-init-d76fbab6e770d5f93dab155030d9edb3ff583ea8.tar.gz vyos-cloud-init-d76fbab6e770d5f93dab155030d9edb3ff583ea8.zip |
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.
LP: #596993
Diffstat (limited to 'cloud.cfg')
-rw-r--r-- | cloud.cfg | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,3 +1,4 @@ cloud_type: auto user: ubuntu disable_root: 1 +preserve_hostname: False |