diff --git a/data/Common.pkrvars.hcl b/data/Common.pkrvars.hcl new file mode 100644 index 0000000..ce8d257 --- /dev/null +++ b/data/Common.pkrvars.hcl @@ -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 = [ + "", + "", + "", + "/install/vmlinuz", + " auto=true", + " url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", + " locale=en_US", + " console-setup/ask_detect=false", + " console-setup/layoutcode=us", + " console-setup/modelcode=pc105", + " debconf/frontend=noninteractive", + " debian-installer=en_US", + " fb=false", + " initrd=/install/initrd.gz", + " kbd-chooser/method=us", + " keyboard-configuration/layout=USA", + " keyboard-configuration/variant=USA", + " netcfg/get_domain=vm", + " netcfg/get_hostname=packer", + " grub-installer/bootdev=/dev/sda", + " noapic", + " -- ", + "" +] \ No newline at end of file diff --git a/data/20.04.pkrvars.hcl b/data/Ubuntu2004.pkrvars.hcl similarity index 100% rename from data/20.04.pkrvars.hcl rename to data/Ubuntu2004.pkrvars.hcl diff --git a/data/Ubuntu2404.pkrvars.hcl b/data/Ubuntu2404.pkrvars.hcl new file mode 100644 index 0000000..e20f075 --- /dev/null +++ b/data/Ubuntu2404.pkrvars.hcl @@ -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 + diff --git a/data/build.sh b/data/build.sh index 8d4c88a..ce1cb65 100755 --- a/data/build.sh +++ b/data/build.sh @@ -37,6 +37,7 @@ case $1 in BuildSettings="${DFT_PARAM} -only=${TheBuilder} \ -var VMNAME=${VMNAME} \ -var-file=${OSSTRING}.pkrvars.hcl \ + -var-file=Common.pkrvars.hcl \ ${SCRIPTDIR}/Linux" ;;