meta-virtualization/classes
Bruce Ashfield 491a385ca6 config: introduce hostname generation hooks
Overriding hostname in a .conf file, via base-files:

  HOST_NAME="k3s-host"
  hostname_pn-base-files = "${HOST_NAME}"

Is always a valid option, but if it is not configured, we can easily
have two hosts with the same name on the network, confusing adddress
assignement, etc.

This commit introduces a way to generate a unique hostname based
on the uuid of the build host, and the machine being built.

If virt-unique-hostname is added to IMAGE_FEATURES, like the following:

  IMAGE_FEATURES += "virt-unique-hostname"
  IMAGE_FEATURES[validitems] += "virt-unique-hostname"

Then a rootfs postprocessing hook will override hostnae to something
unique.

Note: this means your image will be reproducible on a single builder,
but not between them.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-12-13 15:59:35 -05:00
..
cni_networking.bbclass global: overrides syntax conversion 2021-08-02 17:17:53 -04:00
image-oci-sloci-image.inc global: overrides syntax conversion 2021-08-02 17:17:53 -04:00
image-oci-umoci.inc global: overrides syntax conversion 2021-08-02 17:17:53 -04:00
image-oci.bbclass image-oci: use new override syntax 2021-08-06 22:27:57 -04:00
meta-virt-cfg.bbclass conf: defer DISTRO_FEATURE check to bbclass processing 2020-02-10 10:28:38 -05:00
meta-virt-hosts.bbclass config: introduce hostname generation hooks 2021-12-13 15:59:35 -05:00
meta-virt-k8s-cfg.bbclass conf: defer DISTRO_FEATURE check to bbclass processing 2020-02-10 10:28:38 -05:00
meta-virt-xen-cfg.bbclass xen: apply layer settings when xen DISTRO_FEATURE is enabled 2020-07-06 16:25:55 -04:00
qemuboot-testimage-network.bbclass xtf: add testimage integration to run XTF test cases in OEQA 2021-09-02 16:36:23 -04:00
qemuboot-xen-defaults.bbclass global: overrides conversion pass 2 2021-08-02 17:18:08 -04:00
qemuboot-xen-dtb.bbclass xen: update to setuptools based lopper 2021-11-03 09:48:00 -04:00
sanity-meta-virt.bbclass sanity-meta-virt: Watch for SanityCheck event 2017-10-12 21:59:51 -04:00