This repository has been archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
debian.json
119 lines (119 loc) · 4.01 KB
/
debian.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"variables": {
"boot_command_prefix": "",
"compression_level": "6",
"iso_checksum": "",
"iso_checksum_type": "",
"iso_url": "",
"vm_disk_adapter_type": "",
"vm_disk_size": "",
"vm_memory": "",
"vm_name": "",
"vm_ssh_password": "",
"vm_ssh_username": "",
"vm_vcpu": ""
},
"builders": [
{
"boot_command": [
"{{ user `boot_command_prefix` }}",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"netcfg/get_domain=vm <wait>",
"netcfg/get_hostname=packer <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"disk_size": "{{ user `vm_disk_size` }}",
"guest_os_type": "Debian_64",
"hard_drive_interface": "{{ user ` vm_disk_adapter_type` }}",
"headless": true,
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"output_directory": "output-{{ user `vm_name` }}-{{ build_type }}-{{ timestamp }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "virtualbox-iso",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "{{ user `vm_memory` }}"],
["modifyvm", "{{.Name}}", "--cpus", "{{ user `vm_vcpu` }}"]
],
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}"
},
{
"boot_command": [
"{{ user `boot_command_prefix` }}",
"install <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian/preseed.cfg <wait>",
"debian-installer=en_US <wait>",
"auto <wait>",
"locale=en_US <wait>",
"kbd-chooser/method=us <wait>",
"netcfg/get_domain=vm <wait>",
"netcfg/get_hostname=packer <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"<enter><wait>"
],
"disk_adapter_type": "{{ user ` vm_disk_adapter_type` }}",
"disk_size": "{{ user `vm_disk_size` }}",
"disk_type_id": 0,
"guest_os_type": "debian8-64",
"headless": true,
"http_directory": "http",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"output_directory": "output-{{ user `vm_name` }}-{{ build_type }}-{{ timestamp }}",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'packer'|sudo -S bash 'shutdown.sh'",
"ssh_password": "{{ user `vm_ssh_password` }}",
"ssh_username": "{{ user `vm_ssh_username` }}",
"ssh_wait_timeout": "60m",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}-{{ timestamp }}",
"vmx_data": {
"memsize": "{{ user `vm_memory` }}",
"numvcpus": "{{ user `vm_vcpu` }}"
}
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}
],
"post-processors": [
{
"compression_level": "{{ user `compression_level` }}",
"output": "{{ user `vm_name` }}-{{.Provider}}-{{ timestamp }}.box",
"type": "vagrant"
},
{
"type": "manifest",
"output": "manifest.json",
"strip_path": true
}
]
}