2015-09-28 10:14:31 +00:00
|
|
|
{
|
|
|
|
"builders":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"type": "qemu",
|
|
|
|
"iso_url": "http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.2/releases/x86_64/alpine-mini-3.2.3-x86_64.iso",
|
|
|
|
"iso_checksum": "a718c78537a0d416fa0b7cfcef1dfb85d1e837aa",
|
|
|
|
"iso_checksum_type": "sha1",
|
|
|
|
"shutdown_command": "poweroff",
|
|
|
|
"format": "qcow2",
|
|
|
|
"headless": false,
|
|
|
|
"ssh_username": "root",
|
|
|
|
"ssh_password": "gns3",
|
|
|
|
"vm_name": "alpine-linux",
|
|
|
|
"accelerator": "none",
|
|
|
|
"disk_interface": "ide",
|
|
|
|
"net_device": "e1000",
|
|
|
|
"disk_size": 5000,
|
|
|
|
"boot_wait": "120s",
|
|
|
|
"http_directory": "http",
|
|
|
|
"ssh_wait_timeout": "60m",
|
|
|
|
"boot_command":
|
|
|
|
[
|
|
|
|
"root<enter><wait>",
|
2016-05-18 15:11:58 +00:00
|
|
|
"echo \"root:gns3\" | chpasswd<enter>",
|
2015-09-28 10:14:31 +00:00
|
|
|
"ifconfig eth0 up && udhcpc -i eth0<enter><wait5>",
|
|
|
|
"setup-apkrepos -r<enter><wait5>",
|
|
|
|
"setup-sshd -c openssh<enter>"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"script": "scripts/setup.sh"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"inline": [ "reboot" ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"pause_before": "60s",
|
|
|
|
"script": "scripts/post_setup.sh"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|