From bf075cf6f9a434c5fc2bdbc52e45d339e114f64e Mon Sep 17 00:00:00 2001 From: do3meli Date: Mon, 25 Nov 2019 23:13:26 +0100 Subject: Correct jumbled documentation for cc_set_hostname module (#64) LP: #1853543 --- cloudinit/config/cc_set_hostname.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cloudinit/config/cc_set_hostname.py') diff --git a/cloudinit/config/cc_set_hostname.py b/cloudinit/config/cc_set_hostname.py index 3d2b2da3..a0febc3c 100644 --- a/cloudinit/config/cc_set_hostname.py +++ b/cloudinit/config/cc_set_hostname.py @@ -21,7 +21,9 @@ 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. -**Internal name:** per instance +**Internal name:** ``cc_set_hostname`` + +**Module frequency:** per instance **Supported distros:** all -- cgit v1.2.3 From 15cd817e685b24cf1590d7447481b5d00e8aac8d Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Fri, 20 Dec 2019 11:04:15 -0800 Subject: 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 --- cloudinit/config/cc_set_hostname.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'cloudinit/config/cc_set_hostname.py') 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 -- cgit v1.2.3