forked from stoned/packer-nbsd-boxes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetbsd-9-amd64.json
72 lines (72 loc) · 2.26 KB
/
netbsd-9-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
72
{
"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-9-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:5ee0ea101f73386b9b424f5d1041e371db3c42fdd6f4e4518dc79c4a08f31d43091ebe93425c9f0dcaaed2b51131836fe6774f33f89030b58d64709b35fda72f",
"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://cdn.netbsd.org/pub/NetBSD",
"mirror2": "http://nycdn.netbsd.org/pub/NetBSD-daily",
"provisioner" : "ansible:chef:puppet",
"release" : "9.2",
"ruby_version" : "ruby30"
}
}