Updating packer builds for new vmdisk-templates storage pool
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
variable "proxmox_host" {
|
||||
type = string
|
||||
default = "proxmox.example.com"
|
||||
}
|
||||
|
||||
variable "proxmox_apiuser" {
|
||||
type = string
|
||||
default = "packer"
|
||||
@@ -8,6 +13,11 @@ variable "proxmox_apitoken" {
|
||||
default = "changeme"
|
||||
}
|
||||
|
||||
variable "proxmox_disk_storage" {
|
||||
type = string
|
||||
default = "packer"
|
||||
}
|
||||
|
||||
source "proxmox-iso" "ubuntu-22" {
|
||||
template_name = "ubuntu-22"
|
||||
template_description = "Ubuntu 22.04, generated on ${timestamp()}"
|
||||
@@ -39,7 +49,7 @@ source "proxmox-iso" "ubuntu-22" {
|
||||
scsi_controller = "virtio-scsi-single"
|
||||
disks {
|
||||
disk_size = "30G"
|
||||
storage_pool = "templates"
|
||||
storage_pool = "${var.proxmox_disk_storage}"
|
||||
type = "scsi"
|
||||
format = "qcow2"
|
||||
}
|
||||
@@ -48,7 +58,7 @@ source "proxmox-iso" "ubuntu-22" {
|
||||
model = "virtio"
|
||||
}
|
||||
|
||||
proxmox_url = "https://kamino.int.metaunix.net:8006/api2/json/"
|
||||
proxmox_url = "https://${var.proxmox_host}:8006/api2/json/"
|
||||
insecure_skip_tls_verify = true
|
||||
username = "${var.proxmox_apiuser}"
|
||||
password = "${var.proxmox_apitoken}"
|
||||
|
||||
Reference in New Issue
Block a user