Skip to content

Commit

Permalink
revert uefi
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Jul 4, 2024
1 parent 9aa1b9d commit ebf0398
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 66 deletions.
14 changes: 1 addition & 13 deletions terraform/bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,11 @@ resource "libvirt_domain" "bastion" {
memory = var.memory*1024
vcpu = var.cpu
machine = "q35"
firmware = "/usr/share/edk2/ovmf/OVMF_CODE.fd"

cpu {
mode = "host-passthrough"
}

disk {
volume_id = libvirt_volume.os_image.id
}
Expand All @@ -103,17 +102,6 @@ resource "libvirt_domain" "bastion" {
listen_type = "address"
autoport = "true"
}

# necessary when using UEFI
lifecycle {
ignore_changes = [
nvram
]
}

xml {
xslt = file("${path.module}/uefi-patch.xsl")
}
}

terraform {
Expand Down
20 changes: 0 additions & 20 deletions terraform/bastion/uefi-patch.xsl

This file was deleted.

14 changes: 1 addition & 13 deletions terraform/loadbalancer/loadbalancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ resource "libvirt_domain" "infra-machine" {
memory = var.memory
vcpu = var.cpu
machine = "q35"
firmware = "/usr/share/edk2/ovmf/OVMF_CODE.fd"

cpu {
mode = "host-passthrough"
}

disk {
volume_id = libvirt_volume.os_image.id
}
Expand All @@ -98,17 +97,6 @@ resource "libvirt_domain" "infra-machine" {
listen_type = "address"
autoport = "true"
}

# necessary when using UEFI
lifecycle {
ignore_changes = [
nvram
]
}

xml {
xslt = file("${path.module}/uefi-patch.xsl")
}
}

terraform {
Expand Down
20 changes: 0 additions & 20 deletions terraform/loadbalancer/uefi-patch.xsl

This file was deleted.

0 comments on commit ebf0398

Please sign in to comment.