From aebba129969d89470efe6a3327d0716eb260dad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Mon, 27 Apr 2020 12:09:01 +0200 Subject: [PATCH] build_library/template_vmware.ovf: Document and add cloud-init OVF vars The configuration variables for the Ignition configuration also serve as data source for coreos-cloudinit config data (which includes plain scripts). Document them properly and also call out that the networking variables only work if coreos-cloudinit data is used. For some use cases, too few networking variables were available. Add secondary routing variables for the main network interface and add a second interface. --- build_library/template_vmware.ovf | 140 ++++++++++++++++++++---------- 1 file changed, 95 insertions(+), 45 deletions(-) diff --git a/build_library/template_vmware.ovf b/build_library/template_vmware.ovf index 8a60ddf220..75055f3c7d 100644 --- a/build_library/template_vmware.ovf +++ b/build_library/template_vmware.ovf @@ -25,63 +25,113 @@ - - Inline Ignition data + + Inline Ignition config or coreos-cloudinit data (cloud-config or script) - - Encoding for Ignition data (e.g., base64) + + Encoding for Ignition config or coreos-cloudinit data (e.g., base64) - - URL to Ignition data - - - - Name for network interface 0 - - - - MAC for network interface 0 - - - - DHCP support for network interface 0 - - - - Role for network interface 0 - - - - Main IP for network interface 0 - - - - Main route gateway for network interface 0 - - - - Main route destination for network interface 0 + + URL to Ignition config or coreos-cloudinit data (cloud-config or script) - - Primary DNS + + Primary DNS (only for coreos-cloudinit) - - Secondary DNS + + Secondary DNS (only for coreos-cloudinit) + + + + Name for network interface 0 (only for coreos-cloudinit) + + + + MAC for network interface 0 (only for coreos-cloudinit) + + + + DHCP support for network interface 0 (only for coreos-cloudinit) + + + + Role for network interface 0 (only for coreos-cloudinit) + + + + Main IP for network interface 0 (only for coreos-cloudinit) + + + + Additional IP for network interface 0 (only for coreos-cloudinit) + + + + Main route gateway for network interface 0 (only for coreos-cloudinit) + + + + Main route destination for network interface 0 (only for coreos-cloudinit) + + + + Additional route gateway for network interface 0 (only for coreos-cloudinit) + + + + Additional route destination for network interface 0 (only for coreos-cloudinit) + + + + Name for network interface 1 (only for coreos-cloudinit) + + + + MAC for network interface 1 (only for coreos-cloudinit) + + + + DHCP support for network interface 1 (only for coreos-cloudinit) + + + + Role for network interface 1 (only for coreos-cloudinit) + + + + Main IP for network interface 1 (only for coreos-cloudinit) + + + + Main route gateway for network interface 1 (only for coreos-cloudinit) + + + + Main route destination for network interface 1 (only for coreos-cloudinit)