mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-27 05:18:39 +01:00
test(packer): add cpu & ram internal variable.
This commit is contained in:
parent
aae36aa4e0
commit
4e73f7209f
5 changed files with 22 additions and 10 deletions
|
@ -8,8 +8,8 @@ source "qemu" "archlinux" {
|
|||
iso_checksum = "file:https://geo.mirror.pkgbuild.com/images/latest/Arch-Linux-x86_64-cloudimg.qcow2.SHA256"
|
||||
iso_target_path = "${var.iso_dir}/archlinux-cloudimg-amd64.img"
|
||||
cpu_model = "host"
|
||||
cpus = 6
|
||||
memory = 4096
|
||||
cpus = var.cpus
|
||||
memory = var.ram
|
||||
disk_size = var.disk_size
|
||||
accelerator = "kvm"
|
||||
headless = true
|
||||
|
|
|
@ -8,8 +8,8 @@ source "qemu" "debian" {
|
|||
iso_checksum = "file:https://cdimage.debian.org/images/cloud/${var.release.debian.codename}/latest/SHA512SUMS"
|
||||
iso_target_path = "${var.iso_dir}/debian-${var.release.debian.codename}-cloudimg-amd64.img"
|
||||
cpu_model = "host"
|
||||
cpus = 6
|
||||
memory = 4096
|
||||
cpus = var.cpus
|
||||
memory = var.ram
|
||||
disk_size = var.disk_size
|
||||
accelerator = "kvm"
|
||||
headless = true
|
||||
|
|
|
@ -10,8 +10,8 @@ source "qemu" "opensuse" {
|
|||
iso_checksum = "sha256:223ed62160ef4f1a4f21b69c574f552a07eee6ef66cf66eef2b49c5a7c4864f4"
|
||||
iso_target_path = "${var.base_dir}/base-tumbleweed-gnome.qcow2"
|
||||
cpu_model = "host"
|
||||
cpus = 6
|
||||
memory = 4096
|
||||
cpus = var.cpus
|
||||
memory = var.ram
|
||||
disk_size = var.disk_size
|
||||
accelerator = "kvm"
|
||||
headless = false
|
||||
|
|
|
@ -8,8 +8,8 @@ source "qemu" "ubuntu22" {
|
|||
iso_checksum = "file:https://cloud-images.ubuntu.com/${var.release.ubuntu22.codename}/current/SHA256SUMS"
|
||||
iso_target_path = "${var.iso_dir}/ubuntu-${var.release.ubuntu22.codename}-cloudimg-amd64.img"
|
||||
cpu_model = "host"
|
||||
cpus = 6
|
||||
memory = 4096
|
||||
cpus = var.cpus
|
||||
memory = var.ram
|
||||
disk_size = var.disk_size
|
||||
accelerator = "kvm"
|
||||
headless = true
|
||||
|
@ -45,8 +45,8 @@ source "qemu" "ubuntu24" {
|
|||
iso_checksum = "file:https://cloud-images.ubuntu.com/${var.release.ubuntu24.codename}/current/SHA256SUMS"
|
||||
iso_target_path = "${var.iso_dir}/ubuntu-${var.release.ubuntu24.codename}-cloudimg-amd64.img"
|
||||
cpu_model = "host"
|
||||
cpus = 6
|
||||
memory = 4096
|
||||
cpus = var.cpus
|
||||
memory = var.ram
|
||||
disk_size = var.disk_size
|
||||
accelerator = "kvm"
|
||||
headless = true
|
||||
|
|
|
@ -22,6 +22,18 @@ variable "ssh_publickey" {
|
|||
default = "~/.ssh/id_ed25519.pub"
|
||||
}
|
||||
|
||||
variable "cpus" {
|
||||
description = "Default CPU of the VM"
|
||||
type = string
|
||||
default = "6"
|
||||
}
|
||||
|
||||
variable "ram" {
|
||||
description = "Default RAM of the VM"
|
||||
type = string
|
||||
default = "4096"
|
||||
}
|
||||
|
||||
variable "disk_size" {
|
||||
description = "Disk size of the VM to build"
|
||||
type = string
|
||||
|
|
Loading…
Reference in a new issue