Merge pull request 'Formatproblem mit packer-eigenen tools gelöst' (#1) from CLT25-fixing-packer-json-file into master
Reviewed-on: #1 Reviewed-by: Jan Dittberner <jan@dittberner.info>
This commit is contained in:
commit
8b22eaf8e9
1 changed files with 37 additions and 35 deletions
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
"description": "Debian Babelbox",
|
||||
"builders": [
|
||||
{
|
||||
"type": "virtualbox-iso",
|
||||
"boot_command": [
|
||||
"<esc><wait>",
|
||||
"install <wait>",
|
||||
|
@ -23,15 +21,15 @@
|
|||
"hard_drive_interface": "sata",
|
||||
"headless": false,
|
||||
"http_directory": "http",
|
||||
"iso_checksum": "6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8",
|
||||
"iso_checksum_type": "sha256",
|
||||
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso",
|
||||
"iso_checksum": "sha256:1257373c706d8c07e6917942736a865dfff557d21d76ea3040bb1039eb72a054",
|
||||
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso",
|
||||
"output_directory": "babelbox-virtualbox",
|
||||
"shutdown_command": "sudo systemctl poweroff",
|
||||
"ssh_username": "demo",
|
||||
"ssh_password": "babelbox",
|
||||
"ssh_port": "22",
|
||||
"ssh_wait_timeout": "1800s",
|
||||
"vm_name": "babelbox-buster",
|
||||
"ssh_timeout": "1800s",
|
||||
"ssh_username": "demo",
|
||||
"type": "virtualbox-iso",
|
||||
"vboxmanage": [
|
||||
[
|
||||
"modifyvm",
|
||||
|
@ -46,27 +44,10 @@
|
|||
"1"
|
||||
]
|
||||
],
|
||||
"output_directory": "babelbox-virtualbox"
|
||||
"vm_name": "babelbox-bookworm"
|
||||
},
|
||||
{
|
||||
"type": "qemu",
|
||||
"iso_checksum": "6a901b5abe43d88b39d627e1339d15507cc38f980036b928f835e0f0e957d3d8",
|
||||
"iso_checksum_type": "sha256",
|
||||
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.3.0-amd64-netinst.iso",
|
||||
"output_directory": "babelbox-qemu",
|
||||
"shutdown_command": "sudo systemctl poweroff",
|
||||
"disk_size": "10240M",
|
||||
"format": "qcow2",
|
||||
"accelerator": "kvm",
|
||||
"http_directory": "http-qemu",
|
||||
"ssh_username": "demo",
|
||||
"ssh_password": "babelbox",
|
||||
"ssh_timeout": "20m",
|
||||
"vm_name": "babelbox-buster",
|
||||
"net_device": "virtio-net",
|
||||
"disk_interface": "virtio",
|
||||
"disk_detect_zeroes": "on",
|
||||
"boot_wait": "10s",
|
||||
"boot_command": [
|
||||
"<esc><wait>",
|
||||
"install <wait>",
|
||||
|
@ -82,38 +63,59 @@
|
|||
"keyboard-configuration/xkb-keymap=de <wait>",
|
||||
"<enter><wait>"
|
||||
],
|
||||
"boot_wait": "10s",
|
||||
"disk_detect_zeroes": "on",
|
||||
"disk_interface": "virtio",
|
||||
"disk_size": "10240M",
|
||||
"format": "qcow2",
|
||||
"http_directory": "http-qemu",
|
||||
"iso_checksum": "sha256:1257373c706d8c07e6917942736a865dfff557d21d76ea3040bb1039eb72a054",
|
||||
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.9.0-amd64-netinst.iso",
|
||||
"memory": "1024",
|
||||
"net_device": "virtio-net",
|
||||
"output_directory": "babelbox-qemu",
|
||||
"qemuargs": [
|
||||
["-display", "sdl"]
|
||||
]
|
||||
[
|
||||
"-display",
|
||||
"sdl"
|
||||
]
|
||||
],
|
||||
"shutdown_command": "sudo systemctl poweroff",
|
||||
"ssh_password": "babelbox",
|
||||
"ssh_timeout": "20m",
|
||||
"ssh_username": "demo",
|
||||
"type": "qemu",
|
||||
"vm_name": "babelbox-bookworm"
|
||||
}
|
||||
],
|
||||
"description": "Debian Babelbox",
|
||||
"provisioners": [
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
||||
"scripts": [
|
||||
"scripts/babelbox-partitions.sh",
|
||||
"scripts/setup-babelbox.sh"
|
||||
]
|
||||
],
|
||||
"type": "shell"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
||||
"only": [
|
||||
"virtualbox-iso"
|
||||
],
|
||||
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
||||
"scripts": [
|
||||
"scripts/virtualbox.sh"
|
||||
]
|
||||
],
|
||||
"type": "shell"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
||||
"scripts": [
|
||||
"scripts/cleanup.sh",
|
||||
"scripts/minimize.sh"
|
||||
]
|
||||
],
|
||||
"type": "shell"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue