forked from voxxit/packer-arch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.json
66 lines (65 loc) · 1.71 KB
/
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
61
62
63
64
65
66
{
"variables": {
"iso_url": "http://mirror.bytemark.co.uk/archlinux/iso/2015.02.01/archlinux-2015.02.01-dual.iso",
"iso_checksum": "7291baa71630a7603ef09e843b3b321e48024f9f",
"iso_checksum_type": "sha1",
"iperf_version": "3.0.11"
},
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "512" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
[ "modifyvm", "{{.Name}}", "--bioslogodisplaytime", "1" ]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "archlinux-2015-02-01",
"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",
"headless": true,
"http_directory": ".",
"boot_wait": "10s",
"boot_command": [
"<enter><wait5><wait5>",
"<wait10><wait10>",
"echo 'root:root' | chpasswd<enter>",
"ssh-keygen -A<enter><wait>",
"systemctl reenable sshd.service<enter>",
"systemctl start sshd.service<enter>"
],
"disk_size": 1024,
"hard_drive_interface": "sata",
"ssh_port": 22,
"ssh_username": "root",
"ssh_password": "root",
"shutdown_command": "systemctl poweroff"
}
],
"provisioners": [
{
"type": "shell",
"environment_vars": [
"IPERF_VERSION=iperf-{{ user `iperf_version` }}"
],
"execute_command": "{{.Vars}} sh -x {{.Path}}",
"scripts": [
"scripts/10-disk.sh",
"scripts/20-base.sh",
"scripts/25-packages.sh",
"scripts/30-bootstrap.sh",
"scripts/90-cleanup.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"compression_level": "9",
"output": "arch-iperf.box"
}
]
}