forked from elasticdog/packer-arch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
arch-template.json
60 lines (60 loc) · 2.38 KB
/
arch-template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"variables": {
"iso_url": "https://mirrors.kernel.org/archlinux/iso/2014.08.01/archlinux-2014.08.01-dual.iso",
"iso_checksum": "52b2fb05dbe00ff1170439bc46608f9cc6489dda",
"iso_checksum_type": "sha1"
},
"builders": [
{
"type": "virtualbox-iso",
"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/curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/poweroff.timer<enter><wait5>",
"/usr/bin/bash ./install-virtualbox.sh<enter>"
],
"disk_size": 20480,
"hard_drive_interface": "sata",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_wait_timeout": "60m",
"shutdown_command": "systemctl start poweroff.timer",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--cpus", "2"],
["modifyvm", "{{.Name}}", "--memory", "2048"],
["setextradata", "{{.Name}}", "GUI/ShowMiniToolBar", "no"]
]
},
{
"type": "vmware-iso",
"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/curl -O http://{{.HTTPIP}}:{{.HTTPPort}}/poweroff.timer<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"
}
]
}