forked from elasticdog/packer-arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharch-template.json
53 lines (53 loc) · 2.06 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
{
"variables": {
"iso_url": "https://mirrors.kernel.org/archlinux/iso/2014.05.01/archlinux-2014.05.01-dual.iso",
"iso_checksum": "007654f3f18da66f761611c1e645fca2fb194c5b",
"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,
"ssh_username": "root",
"ssh_password": "vagrant",
"shutdown_command": "systemctl start poweroff.timer"
},
{
"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"
}
]
}