Skip to content

Commit

Permalink
fix: null can't be an value
Browse files Browse the repository at this point in the history
  • Loading branch information
fatz committed Dec 23, 2024
1 parent 27f4c3f commit 551d9f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vsphere.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ source "vsphere-iso" "baseimage" {

locals {
rhel_cloud_init = var.cloud_init_from_source ? "${path.root}/scripts/common/cloudinit_from_source.sh" : "${path.root}/scripts/el/install_cloud_tools.sh"
rhel_cloud_init_final = var.cloud_init_from_source ? "${path.root}/scripts/el/cloudinit_from_source_final.sh" : null
rhel_cloud_init_final = var.cloud_init_from_source ? "${path.root}/scripts/el/cloudinit_from_source_final.sh" : ""
distro_build_scripts = {
"Ubuntu" = [
"${path.root}/scripts/ubuntu/install_open_vm_tools.sh",
Expand All @@ -433,14 +433,14 @@ locals {
"${path.root}/scripts/el/cleanup_yum.sh",
"${path.root}/scripts/el/rhn_remove_subscription.sh"
],
"RHEL" = [
"RHEL" = compact([
"${path.root}/scripts/el/rhn_add_subscription.sh",
"${path.root}/scripts/el/install_open_vm_tools.sh",
local.rhel_cloud_init,
local.rhel_cloud_init_final,
"${path.root}/scripts/el/cleanup_dnf.sh",
"${path.root}/scripts/el/rhn_remove_subscription.sh"
],
]),
"RockyLinux" = [
"${path.root}/scripts/el/install_open_vm_tools.sh",
"${path.root}/scripts/el/cleanup_dnf.sh"
Expand Down

0 comments on commit 551d9f1

Please sign in to comment.