forked from stoned/packer-nbsd-boxes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetbsd-7-amd64.json
71 lines (71 loc) · 2.21 KB
/
netbsd-7-amd64.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
67
68
69
70
71
{
"builders": [
{
"boot_command": [
"<enter><wait15><enter><enter>e<enter><enter>dhcpcd -4 -w wm0<enter>sleep 2<enter>ftp -o /tmp/i.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/install-NetBSD-7-amd64.sh<enter>sh /tmp/i.sh<enter>reboot<enter>"
],
"boot_wait": "5s",
"disk_size": 10140,
"guest_additions_mode": "disable",
"guest_os_type": "NetBSD_64",
"http_directory": "http",
"iso_checksum": "sha512:976ae57aff4f1d34e66310f4d7b18f3e28356b9a3f13958d313530a790d2800c618c7e26467bc78095e10cdeee665a1fd45192129a4bff218dfa110e785c3ef3",
"iso_urls": [
"iso/NetBSD-{{user `release`}}-amd64.iso",
"{{user `mirror`}}/NetBSD-{{user `release`}}/images/NetBSD-{{user `release`}}-amd64.iso"
],
"output_directory": "packer-netbsd-{{user `release`}}-amd64{{user `build_suffix`}}-virtualbox",
"shutdown_command": "echo vagrant | sudo -S /sbin/poweroff",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"512"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-netbsd-{{user `release`}}-amd64"
}
],
"description": "NetBSD {{user `release`}} amd64",
"post-processors": [
{
"type": "vagrant",
"output": "./builds/netbsd-{{user `release`}}-amd64{{user `build_suffix`}}-{{.Provider}}.box",
"keep_input_artifact": true
}
],
"provisioners": [
{
"environment_vars": [
"PROVISIONER={{user `provisioner`}}",
"NBSD_RELEASE={{user `release`}}",
"RUBY_VERSION={{user `ruby_version`}}"
],
"execute_command": "echo vagrant | {{.Vars}} sudo -E -S sh '{{.Path}}'",
"scripts": [
"scripts/postinstall.sh"
],
"type": "shell"
}
],
"variables" : {
"build_suffix" : "",
"mirror": "http://archive.netbsd.org/pub/NetBSD-archive",
"provisioner" : "ansible:chef:puppet",
"release" : "7.2",
"ruby_version" : "ruby25"
}
}