Setup babelbox partitioning and cleanup
This commit is contained in:
parent
e5b1594023
commit
787fecd81c
9 changed files with 228 additions and 79 deletions
|
@ -1,37 +1,53 @@
|
|||
{
|
||||
"builders": [{
|
||||
"type": "virtualbox-iso",
|
||||
"guest_os_type": "Debian",
|
||||
"iso_url": "http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-8.3.0-i386-netinst.iso",
|
||||
"iso_checksum": "f270d1ffa0f9472464bfc0fffa7ac3ddc89abb5786eb02454f26e49f143b01d6",
|
||||
"iso_checksum_type": "sha256",
|
||||
"ssh_username": "demo",
|
||||
"ssh_password": "babelbox",
|
||||
"ssh_wait_timeout": "1800s",
|
||||
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
|
||||
"disk_size": 10240,
|
||||
"headless": false,
|
||||
"http_directory": "http",
|
||||
"boot_command": [
|
||||
"<esc><wait>",
|
||||
"install <wait>",
|
||||
"debian-installer=en_US <wait>",
|
||||
"auto <wait>",
|
||||
"locale=en_US <wait>",
|
||||
"kbd-chooser/method=us <wait>",
|
||||
"netcfg/get_hostname={{ .Name }} <wait>",
|
||||
"netcfg/get_domain=demo.local <wait>",
|
||||
"fb=false <wait>",
|
||||
"console-setup/ask_detect=false <wait>",
|
||||
"console-keymaps-at/keymap=us <wait>",
|
||||
"keyboard-configuration/xkb-keymap=us <wait>",
|
||||
"<enter><wait>"
|
||||
],
|
||||
"boot_wait": "5s",
|
||||
"vm_name": "babelbox-jessie",
|
||||
"vboxmanage": [
|
||||
["modifyvm", "{{.Name}}", "--memory", "512"],
|
||||
["modifyvm", "{{.Name}}", "--cpus", "1"]
|
||||
]
|
||||
}]
|
||||
"description": "Debian Babelbox",
|
||||
"builders": [{
|
||||
"boot_command": [
|
||||
"<esc><wait>",
|
||||
"install <wait>",
|
||||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
|
||||
"debian-installer=en_US <wait>",
|
||||
"auto <wait>",
|
||||
"locale=en_US <wait>",
|
||||
"kbd-chooser/method=de <wait>",
|
||||
"netcfg/get_hostname={{ .Name }} <wait>",
|
||||
"netcfg/get_domain=demo.local <wait>",
|
||||
"fb=false <wait>",
|
||||
"debconf/frontend=noninteractive <wait>",
|
||||
"console-setup/ask_detect=false <wait>",
|
||||
"console-keymaps-at/keymap=de <wait>",
|
||||
"keyboard-configuration/xkb-keymap=de <wait>",
|
||||
"<enter><wait>"
|
||||
],
|
||||
"disk_size": 10240,
|
||||
"guest_os_type": "Debian",
|
||||
"hard_drive_interface": "sata",
|
||||
"headless": false,
|
||||
"http_directory": "http",
|
||||
"iso_checksum": "f270d1ffa0f9472464bfc0fffa7ac3ddc89abb5786eb02454f26e49f143b01d6",
|
||||
"iso_checksum_type": "sha256",
|
||||
"iso_url": "http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-8.3.0-i386-netinst.iso",
|
||||
"shutdown_command": "sudo /sbin/halt -p",
|
||||
"ssh_username": "demo",
|
||||
"ssh_password": "babelbox",
|
||||
"ssh_port": "22",
|
||||
"ssh_wait_timeout": "1800s",
|
||||
"type": "virtualbox-iso",
|
||||
"vm_name": "babelbox-jessie",
|
||||
"vboxmanage": [
|
||||
["modifyvm", "{{.Name}}", "--memory", "512"],
|
||||
["modifyvm", "{{.Name}}", "--cpus", "1"]
|
||||
],
|
||||
"output_directory": "babelbox"
|
||||
}],
|
||||
"provisioners": [{
|
||||
"type": "shell",
|
||||
"execute_command": "{{ .Vars }} sudo -E /bin/sh '{{ .Path }}'",
|
||||
"scripts": [
|
||||
"scripts/babelbox-partitions.sh",
|
||||
"scripts/setup-babelbox.sh",
|
||||
"scripts/virtualbox.sh",
|
||||
"scripts/cleanup.sh",
|
||||
"scripts/minimize.sh"
|
||||
]
|
||||
}]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue