summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2019-12-20 11:04:15 -0800
committerGitHub <noreply@github.com>2019-12-20 11:04:15 -0800
commit15cd817e685b24cf1590d7447481b5d00e8aac8d (patch)
tree7b738fc7852d8709620fd625aa7fd8309ce5ad01 /cloudinit/config
parent9bfb2ba7268e2c3c932023fc3d3020cdc6d6cc18 (diff)
downloadvyos-cloud-init-15cd817e685b24cf1590d7447481b5d00e8aac8d.tar.gz
vyos-cloud-init-15cd817e685b24cf1590d7447481b5d00e8aac8d.zip
doc: update cc_set_hostname frequency and descrip (#109)
doc: update cc_set_hostname frequency and descrip After fixing LP: #1746455 the docs for cc_set_hostname were not updated to indicate the change in frequency or why. LP: #1827021
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_set_hostname.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/cloudinit/config/cc_set_hostname.py b/cloudinit/config/cc_set_hostname.py
index a0febc3c..10d6d197 100644
--- a/cloudinit/config/cc_set_hostname.py
+++ b/cloudinit/config/cc_set_hostname.py
@@ -21,9 +21,17 @@ key, and the fqdn of the cloud wil be used. If a fqdn specified with the
the ``fqdn`` config key. If both ``fqdn`` and ``hostname`` are set, ``fqdn``
will be used.
+This module will run in the init-local stage before networking is configured
+if the hostname is set by metadata or user data on the local system.
+
+This will occur on datasources like nocloud and ovf where metadata and user
+data are available locally. This ensures that the desired hostname is applied
+before any DHCP requests are preformed on these platforms where dynamic DNS is
+based on initial hostname.
+
**Internal name:** ``cc_set_hostname``
-**Module frequency:** per instance
+**Module frequency:** per always
**Supported distros:** all