Skip to content

Commit 136e0d0

Browse files
committed
Add headless parameter and disable headless by default
1 parent 96a4f3a commit 136e0d0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
# https://yum.oracle.com/oracle-linux-templates.html
12
efi_boot = false
2-
iso_checksum = "7f1cf4e1fafda55bb4d837d0eeb9592d60e896fa56565081fc4d8519c0a3fd1a"
3-
iso_url = "https://yum.oracle.com/templates/OracleLinux/OL9/u4/x86_64/OL9U4_x86_64-kvm-b234.qcow2"
3+
iso_checksum = "f1b8f0ca281570dda5e844485d6a300d1a13a629272ffdff4ec84bf56b76b1fc"
4+
iso_url = "https://yum.oracle.com/templates/OracleLinux/OL9/u5/x86_64/OL9U5_x86_64-kvm-b259.qcow2"
45
vm_name = "oracle-linux-9-bios-x86_64"

oraclelinux/cloud/x86_64/oracle-linux.pkr.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ variable "efi_firmware_vars" {
2222
default = null
2323
}
2424

25+
variable "headless" {
26+
type = bool
27+
default = true
28+
}
29+
2530
variable "ssh_username" {
2631
type = string
2732
default = "packer"
@@ -79,6 +84,7 @@ source "qemu" "oracle-linux" {
7984
disk_compression = true
8085
disk_image = true
8186
disk_size = "42G"
87+
headless = var.headles
8288
iso_checksum = var.iso_checksum
8389
iso_url = var.iso_url
8490
qemuargs = [

0 commit comments

Comments
 (0)