-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian12.json
113 lines (113 loc) · 3.33 KB
/
debian12.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
{
"builders": [
{
"boot_command": [
"<esc>auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<enter>"
],
"boot_wait": "{{ user `boot_wait` }}",
"disk_size": "{{ user `disk_size` }}",
"disk_type_id": "0",
"guest_os_type": "debian10-64",
"headless": true,
"http_directory": "debianhttp",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "file:{{ user `iso_checksum_url` }}",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": 22,
"ssh_timeout": "30m",
"ssh_username": "{{ user `ssh_username` }}",
"type": "vmware-iso",
"vm_name": "{{ user `vm_name` }}",
"vmx_data": {
"memsize": "{{ user `memsize` }}",
"numvcpus": "{{ user `numvcpus` }}",
"virtualHW.version": "14"
},
"vmx_remove_ethernet_interfaces": true
},
{
"boot_command": [
"<esc>auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<enter>"
],
"boot_wait": "{{ user `boot_wait` }}",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "Debian_64",
"headless": true,
"http_directory": "debianhttp",
"iso_checksum": "file:{{ user `iso_checksum_url` }}",
"iso_url": "{{ user `iso_url` }}",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_port": 22,
"ssh_timeout": "30m",
"ssh_username": "{{ user `ssh_username` }}",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{ user `memsize` }}"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"{{ user `numvcpus` }}"
]
],
"vm_name": "{{ user `vm_name` }}"
}
],
"provisioners": [
{
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'",
"inline": [
"apt -y update \u0026\u0026 apt -y upgrade",
"apt -y install ansible"
],
"type": "shell"
},
{
"playbook_file": "debian/setup.yml",
"type": "ansible-local"
},
{
"execute_command": "echo 'vagrant'|{{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"debian/provision-apt.sh",
"debian/provision-packer.sh",
"debian/provision-vagrant.sh",
"debian/provision-docker.sh",
"debian/provision-vmware.sh",
"debian/provision-rootfs.sh",
"debian/provision-ssh.sh",
"debian/provision-networking.sh",
"debian/cleanup.sh"
],
"type": "shell"
}
],
"post-processors": [
[
{
"type": "vagrant",
"output": "{{user `outfile`}}"
}
]
],
"variables": {
"boot_wait": "15s",
"disk_size": "20480",
"iso_checksum_type": "sha256",
"iso_checksum_url": "https://cdimage.debian.org/cdimage/archive/12.2.0/amd64/iso-cd/SHA256SUMS",
"iso_url": "https://cdimage.debian.org/cdimage/archive/12.2.0/amd64/iso-cd/debian-12.2.0-amd64-netinst.iso",
"memsize": "1024",
"numvcpus": "1",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"vm_name": "buildkite-bookworm",
"outfile": "boxen/bookworm-docker-virt-{{.Provider}}.box"
}
}