summaryrefslogtreecommitdiff
path: root/cloud.cfg
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2010-07-07 11:26:37 -0400
committerScott Moser <smoser@ubuntu.com>2010-07-07 11:26:37 -0400
commitd76fbab6e770d5f93dab155030d9edb3ff583ea8 (patch)
tree851e97c85a982aace1dbdc3fd4ce8b1e46638fef /cloud.cfg
parent422f55437a773bf1896aa0d329f9079d885c5b62 (diff)
downloadvyos-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.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloud.cfg b/cloud.cfg
index 898a8b62..1f479dcc 100644
--- a/cloud.cfg
+++ b/cloud.cfg
@@ -1,3 +1,4 @@
cloud_type: auto
user: ubuntu
disable_root: 1
+preserve_hostname: False