packer template with parameters

This commit is contained in:
Stefan Le Breton 2024-11-24 12:05:45 +01:00
parent 408a111299
commit 854c3aecad

View file

@ -1,14 +1,14 @@
packer { packer {
required_plugins { required_plugins {
hcloud = { hcloud = {
version = ">= 1.2" version = ">= 1.6"
source = "github.com/hetznercloud/hcloud" source = "github.com/hetznercloud/hcloud"
} }
} }
} }
variable "version" { variable "version" {
type = string type = string
} }
variable "schematic_id" { variable "schematic_id" {
@ -37,7 +37,6 @@ source "hcloud" "talos" {
os = "talos", os = "talos",
version = "${var.version}", version = "${var.version}",
cluster = "${var.cluster_name}" cluster = "${var.cluster_name}"
#schematic = "${var.talos_schematic_id}"
} }
} }