From ee6a3160c66acdd47a5c63ac5a3a9df1904ff666 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Sun, 2 Feb 2025 13:19:24 +0100 Subject: packer: removing test mentions and useless commented blocks --- packer/README.md | 4 ++-- .../debian-server-bookworm.pkr.hcl | 22 ++++------------------ 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/packer/README.md b/packer/README.md index e34056d..2bd5d33 100644 --- a/packer/README.md +++ b/packer/README.md @@ -11,6 +11,6 @@ This folder contains Packer templates for creating custom VM images. ```sh cd -packer validate -var-file=../credentials.pkr.hcl ./debian-server-bookworm.pkr.hcl -packer build -var-file=../credentials.pkr.hcl ./debian-server-bookworm.pkr.hcl +packer validate -var-file=../credentials.pkr.hcl ./.pkr.hcl +packer build -var-file=../credentials.pkr.hcl ./.pkr.hcl ``` diff --git a/packer/debian-server-bookworm/debian-server-bookworm.pkr.hcl b/packer/debian-server-bookworm/debian-server-bookworm.pkr.hcl index d93af5e..8f40294 100644 --- a/packer/debian-server-bookworm/debian-server-bookworm.pkr.hcl +++ b/packer/debian-server-bookworm/debian-server-bookworm.pkr.hcl @@ -18,7 +18,7 @@ variable "proxmox_api_token_secret" { variable "vm_hostname" { type = string - default = "debian-server-bookworm-test-1" + default = "debian-server-bookworm-12-9-0-amd64" } variable "ssh_private_key_file" { @@ -27,13 +27,12 @@ variable "ssh_private_key_file" { } # Resource Definition for the VM Template -source "proxmox-iso" "debian-server-bookworm-test-1" { +source "proxmox-iso" "debian-server-bookworm-12-9-0-amd64" { # Proxmox Connection Settings proxmox_url = "${var.proxmox_api_url}" username = "${var.proxmox_api_token_id}" token = "${var.proxmox_api_token_secret}" - # (Optional) Skip TLS Verification insecure_skip_tls_verify = true # VM General Settings @@ -43,14 +42,6 @@ source "proxmox-iso" "debian-server-bookworm-test-1" { template_description = "Debian Server Bookworm Image Test 1" # VM OS Settings - # (Option 1) Local ISO File - # iso_file = "local:iso/ubuntu-24.04.1-live-server-amd64.iso" - # - or - - # (Option 2) Download ISO - # iso_url = "https://releases.ubuntu.com/24.04/ubuntu-24.04-live-server-amd64.iso" - # iso_checksum = "8762f7e74e4d64d72fceb5f70682e6b069932deedb4949c6975d0f0fe0a91be3" - # iso_storage_pool = "local" - # unmount_iso = true boot_iso { type = "scsi" iso_file = "local:iso/debian-12.9.0-amd64-netinst.iso" @@ -107,11 +98,6 @@ source "proxmox-iso" "debian-server-bookworm-test-1" { # http_port_max = 8802 ssh_username = "mas" - - # (Option 1) Add your Password here - # ssh_password = "your-password" - # - or - - # (Option 2) Add your Private SSH KEY file here ssh_private_key_file = "${var.ssh_private_key_file}" # Raise the timeout, when installation takes longer @@ -121,8 +107,8 @@ source "proxmox-iso" "debian-server-bookworm-test-1" { # Build Definition to create the VM Template build { - name = "debian-server-bookworm-test-1" - sources = ["source.proxmox-iso.debian-server-bookworm-test-1"] + name = "debian-server-bookworm-12-9-0-amd64" + sources = ["source.proxmox-iso.debian-server-bookworm-12-9-0-amd64"] # Using ansible playbooks to configure common base provisioner "ansible" { -- cgit v1.2.3