-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbullseye.json
79 lines (70 loc) · 2.88 KB
/
bullseye.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
73
74
75
76
77
78
79
{
"variables": {
"user": "packer",
"password": "packer",
"disk_size": "10000",
"domain": "example.org",
"description": "Network Administration Visualized Appliance\nhttps://nav.uninett.no/"
},
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "navappliance",
"headless": true,
"output_directory": "navappliance",
"guest_os_type": "Debian_64",
"iso_url": "https://cdimage.debian.org/cdimage/archive/11.7.0/amd64/iso-cd/debian-11.7.0-amd64-netinst.iso",
"iso_checksum": "sha256:eb3f96fd607e4b67e80f4fc15670feb7d9db5be50f4ca8d0bf07008cb025766b",
"http_directory": "http",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<esc><wait>",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/bullseye-preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"hostname=navappliance <wait>",
"netcfg/get_domain={{ user `domain` }} <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"passwd/user-fullname={{user `user`}} <wait>",
"passwd/user-password={{user `password`}} <wait>",
"passwd/user-password-again={{user `password`}} <wait>",
"passwd/username={{user `user`}} <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"boot_wait": "5s",
"disk_size": "{{ user `disk_size`}}",
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "10m",
"shutdown_command": "echo '{{user `password`}}' | sudo -S /tmp/shutdown.sh",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "1"],
["modifyvm", "{{.Name}}", "--description", "{{user `description`}}"],
["modifyvm", "{{.Name}}", "--recordingfile", "capture.webm"],
["modifyvm", "{{.Name}}", "--recording", "on"]
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/base.sh",
"scripts/nav.sh",
"scripts/cleanup-virtualbox.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
]
}
]
}