with variables
This commit is contained in:
@@ -4,23 +4,23 @@ packer {
|
|||||||
source "proxmox" "rocky" {
|
source "proxmox" "rocky" {
|
||||||
template_name = "rocky"
|
template_name = "rocky"
|
||||||
template_description = "Rocky Linux Server template"
|
template_description = "Rocky Linux Server template"
|
||||||
proxmox_url = "https://192.168.111.34:8006/api2/json"
|
proxmox_url =var.proxmox_cluster
|
||||||
node = "grosnoeud"
|
node = var.proxmox_node
|
||||||
#iso_file = "ISOS:iso/Rocky-8.5-x86_64-minimal.iso"
|
#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"
|
iso_checksum = "f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98"
|
||||||
insecure_skip_tls_verify = true
|
insecure_skip_tls_verify = true
|
||||||
pool = "Linux-VM"
|
pool = var.linux_pool
|
||||||
vm_name = "PackerTest"
|
vm_name = "PackerTest"
|
||||||
vm_id = 664
|
vm_id = 664
|
||||||
memory = 2048
|
memory = var.rocky_ram
|
||||||
cores = 1
|
cores = 1
|
||||||
sockets = 2
|
sockets = 2
|
||||||
os = "l26"
|
os = "l26"
|
||||||
http_port_min = 4990
|
http_port_min = 4990
|
||||||
http_port_max = 4999
|
http_port_max = 4999
|
||||||
http_directory = "redhat"
|
http_directory = "redhat"
|
||||||
username = "root@pam"
|
username = var.proxmox_username
|
||||||
password = "bzzYpm8koNtPKFYjpjXSyjFY"
|
password = "bzzYpm8koNtPKFYjpjXSyjFY"
|
||||||
ssh_username = "root"
|
ssh_username = "root"
|
||||||
ssh_password = "M0ukreneIsVeryGood!"
|
ssh_password = "M0ukreneIsVeryGood!"
|
||||||
|
|||||||
7
data/masters.pkrvars.hcl
Normal file
7
data/masters.pkrvars.hcl
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
proxmox_cluster="https://192.168.111.34:8006/api2/json"
|
||||||
|
proxmox_node="grosnoeud"
|
||||||
|
rocky_iso_file = "ISOS:iso/Rocky-8.5-x86_64-dvd1.iso"
|
||||||
|
rocky_ram = 2048
|
||||||
|
iso_checksum = "f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98"
|
||||||
|
linux_pool = "Linux-VM"
|
||||||
|
proxmox_username = "root@pam"
|
||||||
Reference in New Issue
Block a user