with variables

This commit is contained in:
2022-01-19 16:11:14 +01:00
parent 151e0efd2d
commit f1b44f502c
2 changed files with 13 additions and 6 deletions

View File

@@ -4,23 +4,23 @@ packer {
source "proxmox" "rocky" {
template_name = "rocky"
template_description = "Rocky Linux Server template"
proxmox_url = "https://192.168.111.34:8006/api2/json"
node = "grosnoeud"
proxmox_url =var.proxmox_cluster
node = var.proxmox_node
#iso_file = "ISOS:iso/Rocky-8.5-x86_64-minimal.iso"
iso_file = "ISOS:iso/Rocky-8.5-x86_64-dvd1.iso"
iso_file = var.rocky_iso_file
iso_checksum = "f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98"
insecure_skip_tls_verify = true
pool = "Linux-VM"
pool = var.linux_pool
vm_name = "PackerTest"
vm_id = 664
memory = 2048
memory = var.rocky_ram
cores = 1
sockets = 2
os = "l26"
http_port_min = 4990
http_port_max = 4999
http_directory = "redhat"
username = "root@pam"
username = var.proxmox_username
password = "bzzYpm8koNtPKFYjpjXSyjFY"
ssh_username = "root"
ssh_password = "M0ukreneIsVeryGood!"