better
This commit is contained in:
35
data/Common.pkrvars.hcl
Normal file
35
data/Common.pkrvars.hcl
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
username = "root"
|
||||||
|
password = "galeregalere"
|
||||||
|
proxmox_url = "https://192.168.111.36:8006/api2/json"
|
||||||
|
node = "grosnoeud"
|
||||||
|
insecure_skip_tls_verify = true
|
||||||
|
pool = "FAST"
|
||||||
|
memory = 1024
|
||||||
|
core = 1
|
||||||
|
sockets = 2
|
||||||
|
os = "l26"
|
||||||
|
boot_command = [
|
||||||
|
"<esc><wait>",
|
||||||
|
"<esc><wait>",
|
||||||
|
"<enter><wait>",
|
||||||
|
"/install/vmlinuz",
|
||||||
|
" auto=true",
|
||||||
|
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
|
||||||
|
" locale=en_US<wait>",
|
||||||
|
" console-setup/ask_detect=false<wait>",
|
||||||
|
" console-setup/layoutcode=us<wait>",
|
||||||
|
" console-setup/modelcode=pc105<wait>",
|
||||||
|
" debconf/frontend=noninteractive<wait>",
|
||||||
|
" debian-installer=en_US<wait>",
|
||||||
|
" fb=false<wait>",
|
||||||
|
" initrd=/install/initrd.gz<wait>",
|
||||||
|
" kbd-chooser/method=us<wait>",
|
||||||
|
" keyboard-configuration/layout=USA<wait>",
|
||||||
|
" keyboard-configuration/variant=USA<wait>",
|
||||||
|
" netcfg/get_domain=vm<wait>",
|
||||||
|
" netcfg/get_hostname=packer<wait>",
|
||||||
|
" grub-installer/bootdev=/dev/sda<wait>",
|
||||||
|
" noapic<wait>",
|
||||||
|
" -- <wait>",
|
||||||
|
"<enter><wait>"
|
||||||
|
]
|
||||||
5
data/Ubuntu2404.pkrvars.hcl
Normal file
5
data/Ubuntu2404.pkrvars.hcl
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
iso_file = "local:ISOS/ubuntu-24.04.1-live-server-amd64.iso"
|
||||||
|
iso_checksum = "e240e4b801f7bb68c20d1356b60968ad0c33a41d00d828e74ceb3364a0317be9"
|
||||||
|
vm_name = "VM-UBU_2404"
|
||||||
|
vm_id = 654
|
||||||
|
|
||||||
@@ -37,6 +37,7 @@ case $1 in
|
|||||||
BuildSettings="${DFT_PARAM} -only=${TheBuilder} \
|
BuildSettings="${DFT_PARAM} -only=${TheBuilder} \
|
||||||
-var VMNAME=${VMNAME} \
|
-var VMNAME=${VMNAME} \
|
||||||
-var-file=${OSSTRING}.pkrvars.hcl \
|
-var-file=${OSSTRING}.pkrvars.hcl \
|
||||||
|
-var-file=Common.pkrvars.hcl \
|
||||||
${SCRIPTDIR}/Linux"
|
${SCRIPTDIR}/Linux"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user