-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdebian9.json
73 lines (70 loc) · 2.64 KB
/
debian9.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
{
"variables": {
"provisioner": "provisionerless",
"provisioner_version": "",
"iso_url": "https://cdimage.debian.org/debian-cd/9.9.0/amd64/iso-cd/debian-9.9.0-amd64-netinst.iso",
"iso_checksum": "d4a22c81c76a66558fb92e690ef70a5d67c685a08216701b15746586520f6e8e",
"iso_checksum_type": "sha256",
"disk_size": "12000",
"output_prefix": "debian{{env `DEBIAN_9_VERSION`}}-amd64",
"config_dir": "debian9"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Debian_64",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"boot_command": [
"<esc><wait>",
"auto ",
"preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg ",
"debian-installer=en_US ",
"locale=en_US ",
"kbd-chooser/method=us ",
"keyboard-configuration/xkb-keymap=us ",
"netcfg/get_hostname={{.Name}} ",
"netcfg/get_domain=local ",
"fb=false ",
"debconf/frontend=noninteractive ",
"console-setup/ask_detect=false ",
"console-keymaps-at/keymap=us <enter><wait>"
],
"boot_wait": "30s",
"disk_size": "{{user `disk_size`}}",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"http_directory": "{{user `config_dir`}}",
"http_port_max": 9000,
"http_port_min": 8000,
"headless": true,
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -hP now",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "20m",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
]
}
],
"provisioners": [
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S sh '{{.Path}}'",
"scripts": [
"{{user `config_dir`}}/base.sh",
"{{user `config_dir`}}/virtualbox.sh",
"{{user `config_dir`}}/vagrant_keys.sh",
"{{user `config_dir`}}/cleanup.sh"
],
"type": "shell"
}
],
"post-processors": [
{
"type": "vagrant",
"output": "{{user `output_prefix`}}-{{.Provider}}.box"
}
]
}