-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpacker_template.json
More file actions
46 lines (44 loc) · 1.15 KB
/
packer_template.json
File metadata and controls
46 lines (44 loc) · 1.15 KB
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
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Debian_64",
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.1.0-amd64-netinst.iso",
"iso_checksum": "ddd8f6542dae8baf410e90b9ae0fe986",
"iso_checksum_type": "md5",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "26m",
"disk_size": 32768,
"http_directory": "http",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
"boot_command": [
"<esc><wait>",
"install ",
"hostname=debianstretch ",
"domain=false ",
"locale=en_US ",
"keyboard-configuration/xkb-keymap=us ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
"<wait>",
"<enter>"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "debian-9.0-amd64-vagrant.box"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/sudoers.sh"
]
}
]
}