From 77eca05700aac99c82e7e703c52c4fc87f141edb Mon Sep 17 00:00:00 2001 From: Yanhua Li Date: Thu, 16 Mar 2023 12:45:56 -0400 Subject: [PATCH] OCPBUGS-6727: Nutanix: Hostname of the VM is not set when using DHCP network config --- data/data/nutanix/cluster/main.tf | 42 ++++++++++++++++++++------ pkg/terraform/stages/nutanix/stages.go | 2 +- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/data/data/nutanix/cluster/main.tf b/data/data/nutanix/cluster/main.tf index 16ac4f2d7c5..5036d7e41b4 100644 --- a/data/data/nutanix/cluster/main.tf +++ b/data/data/nutanix/cluster/main.tf @@ -38,14 +38,38 @@ resource "nutanix_image" "rhcos" { } } +data "ignition_file" "hostname" { + count = var.master_count + mode = "420" // 0644 + path = "/etc/hostname" + + content { + content = <