Compare commits
4 Commits
8fa506613b
...
b682663c56
Author | SHA1 | Date | |
---|---|---|---|
b682663c56 | |||
5883f10ecf | |||
700bb4dfbd | |||
ec7d42a75a |
@ -11,10 +11,15 @@ variable "proxmox_apitoken" {
|
|||||||
source "proxmox-iso" "almalinux-9" {
|
source "proxmox-iso" "almalinux-9" {
|
||||||
template_name = "almalinux-9"
|
template_name = "almalinux-9"
|
||||||
template_description = "Almalinux 9.3, generated on ${timestamp()}"
|
template_description = "Almalinux 9.3, generated on ${timestamp()}"
|
||||||
boot_wait = "10s"
|
boot_wait = "5s"
|
||||||
boot_key_interval = "250ms"
|
boot_key_interval = "250ms"
|
||||||
boot_command = ["<tab><wait1s>", " inst.ks=http://ks.int.metaunix.net/kickstarts/almalinux-9-server.ks<enter><wait5m>"]
|
boot_command = ["<tab><wait1s>", " inst.ks=http://ks.int.metaunix.net/kickstarts/almalinux-9-server.ks<enter><wait5m>"]
|
||||||
# shutdown_command = "echo 'packer' | sudo -S poweroff"
|
# shutdown_command = "echo 'packer' | sudo -S poweroff"
|
||||||
|
|
||||||
|
os = "l26"
|
||||||
|
cores = "2"
|
||||||
|
sockets = "1"
|
||||||
|
memory = "2048"
|
||||||
disks {
|
disks {
|
||||||
disk_size = "10G"
|
disk_size = "10G"
|
||||||
storage_pool = "templates"
|
storage_pool = "templates"
|
||||||
|
52
Debian-12/debian-12.pkr.hcl
Normal file
52
Debian-12/debian-12.pkr.hcl
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
variable "proxmox_apiuser" {
|
||||||
|
type = string
|
||||||
|
default = "packer"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "proxmox_apitoken" {
|
||||||
|
type = string
|
||||||
|
default = "changeme"
|
||||||
|
}
|
||||||
|
|
||||||
|
source "proxmox-iso" "debian-12" {
|
||||||
|
template_name = "debian-12"
|
||||||
|
template_description = "Debian 12.5, generated on ${timestamp()}"
|
||||||
|
boot_wait = "5s"
|
||||||
|
boot_key_interval = "250ms"
|
||||||
|
boot_command = ["<esc><wait1s>", "auto url=http://ks.int.metaunix.net/preseeds/debian-bookworm.cfg", "<enter><wait6m>"]
|
||||||
|
# shutdown_command = "echo 'packer' | sudo -S poweroff"
|
||||||
|
|
||||||
|
os = "l26"
|
||||||
|
cores = "2"
|
||||||
|
sockets = "1"
|
||||||
|
memory = "2048"
|
||||||
|
disks {
|
||||||
|
disk_size = "10G"
|
||||||
|
storage_pool = "templates"
|
||||||
|
type = "scsi"
|
||||||
|
}
|
||||||
|
network_adapters {
|
||||||
|
bridge = "vmbr0"
|
||||||
|
model = "virtio"
|
||||||
|
}
|
||||||
|
|
||||||
|
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/"
|
||||||
|
insecure_skip_tls_verify = true
|
||||||
|
username = "${var.proxmox_apiuser}"
|
||||||
|
password = "${var.proxmox_apitoken}"
|
||||||
|
node = "geonosis"
|
||||||
|
|
||||||
|
iso_url = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso"
|
||||||
|
iso_checksum = "sha256:013f5b44670d81280b5b1bc02455842b250df2f0c6763398feb69af1a805a14f"
|
||||||
|
iso_storage_pool = "iso"
|
||||||
|
unmount_iso = true
|
||||||
|
iso_download_pve = true
|
||||||
|
|
||||||
|
ssh_username = "xadmin"
|
||||||
|
ssh_password = "packer"
|
||||||
|
ssh_timeout = "20m"
|
||||||
|
}
|
||||||
|
|
||||||
|
build {
|
||||||
|
sources = ["source.proxmox-iso.debian-12"]
|
||||||
|
}
|
@ -11,10 +11,15 @@ variable "proxmox_apitoken" {
|
|||||||
source "proxmox-iso" "freebsd-14" {
|
source "proxmox-iso" "freebsd-14" {
|
||||||
template_name = "freebsd-14"
|
template_name = "freebsd-14"
|
||||||
template_description = "FreeBSD 14.0, generated on ${timestamp()}"
|
template_description = "FreeBSD 14.0, generated on ${timestamp()}"
|
||||||
boot_wait = "10s"
|
boot_wait = "5s"
|
||||||
boot_key_interval = "250ms"
|
boot_key_interval = "250ms"
|
||||||
boot_command = ["<enter>", "<wait15s>", "<enter><wait1s>", "<enter><wait1s>", "freebsd", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait5s>", "<right><enter><wait1s>", "<enter><wait1s>", "<enter><wait4s>", "<enter><wait1s>", "<enter><wait1s>", " <enter><wait1s>", "<left><enter><wait1s>", "<enter><wait75s>", "packer<enter><wait1s>", "packer<enter><wait1s>", "<down><enter><wait1s>", "95<up><enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<down><down><down> <enter><wait1s>", "<down><down><down><down><down><down><down><down> <enter><wait1s>", "<enter><wait1s>", "xadmin<enter>", "Remote admin user<enter>", "<enter>", "<enter>", "wheel<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "packer<enter>", "packer<enter>", "<enter>", "<enter>", "<enter><wait1s>", "<enter><wait1s>", "<left><enter><wait1s>", "pkg update && pkg install -y sudo qemu-guest-agent<enter><wait3s>", "y<enter><wait40s>", "echo '%wheel ALL=(ALL:ALL) ALL' > /usr/local/etc/sudoers.d/wheel<enter><wait1s>", "echo 'qemu_guest_agent_enable=\"YES\"' >> /etc/rc.conf<enter><wait1s>", "exit<enter><wait1s>", "<enter><wait40s>"]
|
boot_command = ["<enter>", "<wait15s>", "<enter><wait1s>", "<enter><wait1s>", "freebsd", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait5s>", "<right><enter><wait1s>", "<enter><wait1s>", "<enter><wait4s>", "<enter><wait1s>", "<enter><wait1s>", " <enter><wait1s>", "<left><enter><wait1s>", "<enter><wait75s>", "packer<enter><wait1s>", "packer<enter><wait1s>", "<down><enter><wait1s>", "95<up><enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<down><down><down> <enter><wait1s>", "<down><down><down><down><down><down><down><down> <enter><wait1s>", "<enter><wait1s>", "xadmin<enter>", "Remote admin user<enter>", "<enter>", "<enter>", "wheel<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "packer<enter>", "packer<enter>", "<enter>", "<enter>", "<enter><wait1s>", "<enter><wait1s>", "<left><enter><wait1s>", "pkg update && pkg install -y sudo qemu-guest-agent<enter><wait3s>", "y<enter><wait40s>", "echo '%wheel ALL=(ALL:ALL) ALL' > /usr/local/etc/sudoers.d/wheel<enter><wait1s>", "echo 'qemu_guest_agent_enable=\"YES\"' >> /etc/rc.conf<enter><wait1s>", "exit<enter><wait1s>", "<enter><wait40s>"]
|
||||||
# shutdown_command = "echo 'packer' | sudo -S poweroff"
|
# shutdown_command = "echo 'packer' | sudo -S poweroff"
|
||||||
|
|
||||||
|
os = "other"
|
||||||
|
cores = "2"
|
||||||
|
sockets = "1"
|
||||||
|
memory = "2048"
|
||||||
disks {
|
disks {
|
||||||
disk_size = "10G"
|
disk_size = "10G"
|
||||||
storage_pool = "templates"
|
storage_pool = "templates"
|
||||||
|
Loading…
Reference in New Issue
Block a user