Compare commits
4 commits
8ccdc0c2e6
...
775215f230
| Author | SHA1 | Date | |
|---|---|---|---|
| 775215f230 | |||
| c063b79e1b | |||
| 3ddad7b3e4 | |||
| fc5b1525d7 |
5 changed files with 31 additions and 27 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
# Project
|
# Project
|
||||||
/credentials.auto.pkrvars.hcl
|
/credentials.auto.pkrvars.hcl
|
||||||
/downloaded_iso_path
|
/downloaded_iso_path
|
||||||
|
overwrite-if.auto.pkrvars.hcl
|
||||||
|
|
||||||
# Linux
|
# Linux
|
||||||
*~
|
*~
|
||||||
|
|
|
||||||
|
|
@ -105,13 +105,15 @@ Run:
|
||||||
mise run setup <distribution name> <version>
|
mise run setup <distribution name> <version>
|
||||||
```
|
```
|
||||||
|
|
||||||
E.g. `mise run setup debian 13-trixie` or `mise run setup nixos 25.11`.
|
E.g. `mise run setup debian 13-trixie` or `mise run setup debian 13-trixie-luks`.
|
||||||
|
|
||||||
## ToDo
|
## ToDo
|
||||||
|
|
||||||
- [ ] Debian 13 with LUKS
|
- [ ] Debian 13 with LUKS
|
||||||
- [x] Setup image with LUKS
|
- [x] Setup image with LUKS
|
||||||
|
- [ ] Automated unlock from packer on 1st boot after installation
|
||||||
- [ ] Setup dropbear
|
- [ ] Setup dropbear
|
||||||
- [ ] Setup Clevis/Tang
|
- [ ] Setup Clevis/Tang
|
||||||
- [ ] Lock down root user (remove password, prohibit all logins)
|
- [x] Copy initial setup script, to expand the disk and do various setup steps
|
||||||
- [ ] Lock down SSH Server
|
- [x] Lock down root user (remove password, prohibit all logins)
|
||||||
|
- [x] Lock down SSH Server
|
||||||
|
|
|
||||||
11
debian/13-trixie-luks/debian-trixie.pkr.hcl
vendored
11
debian/13-trixie-luks/debian-trixie.pkr.hcl
vendored
|
|
@ -29,13 +29,16 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
||||||
cpu_type = "${var.template_cpu_type}"
|
cpu_type = "${var.template_cpu_type}"
|
||||||
cores = 2
|
cores = 2
|
||||||
memory = 2048
|
memory = 2048
|
||||||
|
ballooning_minimum = 2048
|
||||||
bios = "ovmf"
|
bios = "ovmf"
|
||||||
scsi_controller = "virtio-scsi-pci"
|
scsi_controller = "virtio-scsi-single"
|
||||||
disks {
|
disks {
|
||||||
disk_size = "30G"
|
disk_size = "30G"
|
||||||
format = "qcow2"
|
format = "qcow2"
|
||||||
storage_pool = "${var.disk_storage_pool}"
|
storage_pool = "${var.disk_storage_pool}"
|
||||||
type = "virtio"
|
type = "scsi" # VirtIO-SCSI better maintained as virtio-blk has been deprecated in Proxmox VE 7.4+ and may cause issues with newer Linux kernels
|
||||||
|
io_thread = true
|
||||||
|
ssd = true
|
||||||
}
|
}
|
||||||
|
|
||||||
efi_config {
|
efi_config {
|
||||||
|
|
@ -63,7 +66,7 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
||||||
model = "virtio"
|
model = "virtio"
|
||||||
mac_address = "${var.mac_address}"
|
mac_address = "${var.mac_address}"
|
||||||
bridge = "${var.network_bridge}"
|
bridge = "${var.network_bridge}"
|
||||||
firewall = "false"
|
firewall = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
# VM Cloud-Init Settings
|
# VM Cloud-Init Settings
|
||||||
|
|
@ -72,7 +75,7 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
||||||
cloud_init_disk_type = "scsi"
|
cloud_init_disk_type = "scsi"
|
||||||
|
|
||||||
# PACKER Boot Commands
|
# PACKER Boot Commands
|
||||||
boot = "order=virtio0;scsi0"
|
boot = "order=scsi0;scsi1"
|
||||||
boot_wait = "10s"
|
boot_wait = "10s"
|
||||||
communicator = "ssh"
|
communicator = "ssh"
|
||||||
boot_command = [
|
boot_command = [
|
||||||
|
|
|
||||||
15
debian/13-trixie-luks/variables.pkr.hcl
vendored
15
debian/13-trixie-luks/variables.pkr.hcl
vendored
|
|
@ -1,18 +1,3 @@
|
||||||
# Secrets
|
|
||||||
variable "proxmox_api_token_id" {
|
|
||||||
type = string
|
|
||||||
sensitive = true
|
|
||||||
description = "Proxmox API token ID in the format 'username@realm!tokenname'"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "proxmox_api_token_secret" {
|
|
||||||
type = string
|
|
||||||
sensitive = true
|
|
||||||
description = "Proxmox API token secret"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
variable "template_vm_id" {
|
variable "template_vm_id" {
|
||||||
type = string
|
type = string
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,19 @@ variable "source_proxmox_http_interface" {
|
||||||
description = "The network interface to use for the Proxmox HTTP source"
|
description = "The network interface to use for the Proxmox HTTP source"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Secrets
|
||||||
|
variable "proxmox_api_token_id" {
|
||||||
|
type = string
|
||||||
|
sensitive = true
|
||||||
|
description = "Proxmox API token ID in the format 'username@realm!tokenname'"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "proxmox_api_token_secret" {
|
||||||
|
type = string
|
||||||
|
sensitive = true
|
||||||
|
description = "Proxmox API token secret"
|
||||||
|
}
|
||||||
|
|
||||||
variable "default_luks_passphrase" {
|
variable "default_luks_passphrase" {
|
||||||
type = string
|
type = string
|
||||||
default = "packer"
|
default = "packer"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue