mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-07-18 00:45:20 +00:00
This option name was changed in Packer 0.3.11 to allow for more flexibility: https://github.com/mitchellh/packer/issues/580
51 lines
1.9 KiB
JSON
51 lines
1.9 KiB
JSON
{
|
|
"variables": {
|
|
"iso_url": "http://mirrors.kernel.org/archlinux/iso/2013.09.01/archlinux-2013.09.01-dual.iso",
|
|
"iso_checksum": "3b087acd273656c55244baa7b7f1a147be7da990",
|
|
"iso_checksum_type": "sha1"
|
|
},
|
|
"builders": [
|
|
{
|
|
"type": "virtualbox",
|
|
"iso_url": "{{user `iso_url`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_checksum_type": "{{user `iso_checksum_type`}}",
|
|
"guest_os_type": "ArchLinux_64",
|
|
"guest_additions_mode": "disable",
|
|
"http_directory": ".",
|
|
"boot_wait": "5s",
|
|
"boot_command": [
|
|
"<enter><wait10><wait10>",
|
|
"/usr/bin/curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/install-virtualbox.sh<enter><wait5>",
|
|
"/usr/bin/bash ./install-virtualbox.sh<enter>"
|
|
],
|
|
"disk_size": 20480,
|
|
"ssh_username": "root",
|
|
"ssh_password": "vagrant",
|
|
"shutdown_command": "systemctl start poweroff.timer"
|
|
},
|
|
{
|
|
"type": "vmware",
|
|
"iso_url": "{{user `iso_url`}}",
|
|
"iso_checksum": "{{user `iso_checksum`}}",
|
|
"iso_checksum_type": "{{user `iso_checksum_type`}}",
|
|
"http_directory": ".",
|
|
"boot_wait": "5s",
|
|
"boot_command": [
|
|
"<enter><wait10><wait10>",
|
|
"/usr/bin/curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/install-vmware.sh<enter><wait5>",
|
|
"/usr/bin/bash ./install-vmware.sh<enter>"
|
|
],
|
|
"disk_size": 20480,
|
|
"ssh_username": "root",
|
|
"ssh_password": "vagrant",
|
|
"shutdown_command": "systemctl start poweroff.timer"
|
|
}
|
|
],
|
|
"post-processors": [
|
|
{
|
|
"type": "vagrant",
|
|
"output": "packer_arch_{{.Provider}}.box"
|
|
}
|
|
]
|
|
}
|