-
Notifications
You must be signed in to change notification settings - Fork 0
/
kx-main-local-profiles.json
445 lines (445 loc) · 16.5 KB
/
kx-main-local-profiles.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
{
"sensitive-variables": [
"vm_password",
"github_token",
"aws_secret_access_key"
],
"_comment": "Read README.md for details on executing the Packer builds.",
"builders": [
{
"type": "virtualbox-iso",
"name": "{{user `vm_name`}}-virtualbox",
"vm_name": "{{user `vm_name`}}-{{user `version`}}-packer-build",
"output_directory": "../../../output-main/virtualbox-{{user `version`}}",
"boot_wait": "10s",
"format": "ova",
"boot_command": [
"<esc><wait>",
"install <wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}} <wait>",
"debian-installer=en_US.UTF-8 <wait>",
"auto <wait>",
"locale=en_US.UTF-8 <wait>",
"kbd-chooser/method=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"netcfg/get_hostname={{user `hostname` }} <wait>",
"netcfg/get_domain={{user `domain` }} <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"grub-installer/bootdev=/dev/sda <wait>",
"<enter><wait>"
],
"disk_size": "{{user `disk_size`}}",
"hard_drive_interface": "sata",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--audio", "none"],
["modifyvm", "{{.Name}}", "--usb", "off"],
["modifyvm", "{{.Name}}", "--graphicscontroller", "vmsvga"],
["modifyvm", "{{.Name}}", "--accelerate3d", "off"],
["modifyvm", "{{.Name}}", "--vram", "{{user `video_memory`}}"],
["modifyvm", "{{.Name}}", "--vrde", "off"],
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"],
["modifyvm", "{{.Name}}", "--clipboard", "bidirectional"],
["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"]
],
"vboxmanage_post": [
["setextradata", "{{.Name}}", "CustomVideoMode1", "1920x1200x32"],
["modifyvm", "{{.Name}}", "--nic1", "natnetwork","--natnetwork1","kxascode"]
],
"guest_os_type": "{{user `virtualbox_guest_os_type`}}",
"http_directory": "http",
"headless": true,
"vrdp_bind_address": "127.0.0.1",
"vrdp_port_min": 11000,
"vrdp_port_max": 12000,
"iso_urls": [
"{{user `iso_path`}}/{{user `iso_file`}}",
"{{user `iso_url`}}"
],
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "3600s",
"shutdown_command": "{{user `vmshutdown_command`}}",
"post_shutdown_delay": "30s",
"guest_additions_url": "{{user `guest_additions_url`}}",
"guest_additions_sha256": "{{user `guest_additions_checksum`}}",
"guest_additions_path": "/home/{{user `base_image_ssh_user`}}/VBoxGuestAdditions_{{.Version}}.iso",
"guest_additions_mode": "upload",
"virtualbox_version_file": "VBoxVersion.txt"
},
{
"type": "vmware-iso",
"name": "{{user `vm_name`}}-vmware-desktop",
"vm_name": "{{user `vm_name`}}-{{user `version`}}-packer-build",
"output_directory": "../../../output-main/vmware-desktop-{{user `version`}}",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"install <wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}} <wait>",
"debian-installer=en_US.UTF-8 <wait>",
"auto <wait>",
"locale=en_US.UTF-8 <wait>",
"kbd-chooser/method=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"netcfg/get_hostname={{user `hostname` }} <wait>",
"netcfg/get_domain={{user `domain` }} <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"grub-installer/bootdev=/dev/sda <wait>",
"<enter><wait>"
],
"network": "nat",
"disk_size": "{{user `disk_size`}}",
"vmx_data": {
"numvcpus": "{{user `cpus`}}",
"memsize": "{{user `memory`}}",
"isolation.tools.hgfs.disable": "FALSE"
},
"guest_os_type": "{{user `vmware_guest_os_type`}}",
"http_directory": "http",
"iso_urls": [
"{{user `iso_path`}}/{{user `iso_file`}}",
"{{user `iso_url`}}"
],
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "3600s",
"ssh_wait_timeout": "10000s",
"shutdown_command": "{{user `shutdown_command`}}"
},
{
"type": "vsphere-iso",
"name": "{{user `vm_name`}}-vmware-vsphere",
"vm_name": "{{user `vm_name`}}-{{user `version`}}",
"boot_wait": "10s",
"boot_order": "disk,cdrom",
"boot_command": [
"<esc><wait>",
"install <wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}} <wait>",
"debian-installer=en_US.UTF-8 <wait>",
"auto <wait>",
"locale=en_US.UTF-8 <wait>",
"kbd-chooser/method=us <wait>",
"keyboard-configuration/xkb-keymap=us <wait>",
"netcfg/get_hostname={{user `hostname` }} <wait>",
"netcfg/get_domain={{user `domain` }} <wait>",
"fb=false <wait>",
"debconf/frontend=noninteractive <wait>",
"console-setup/ask_detect=false <wait>",
"console-keymaps-at/keymap=us <wait>",
"grub-installer/bootdev=/dev/sda <wait>",
"<enter><wait>"
],
"guest_os_type": "{{user `vmware_guest_os_type`}}",
"http_directory": "http",
"iso_urls": [
"{{user `iso_path`}}/{{user `iso_file`}}",
"{{user `iso_url`}}"
],
"iso_checksum": "{{user `iso_checksum_type`}}:{{user `iso_checksum`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_timeout": "3600s",
"shutdown_command": "{{user `shutdown_command`}}",
"convert_to_template": true,
"vcenter_server": "{{user `vsphere_server`}}",
"host": "{{user `vsphere_host`}}",
"username": "{{user `vsphere_username`}}",
"password": "{{user `vsphere_password`}}",
"insecure_connection": "true",
"datacenter": "{{user `vsphere_dc`}}",
"cluster": "{{user `vsphere_cluster`}}",
"network_adapters": [
{
"network": "{{user `vsphere_network`}}",
"network_card": "vmxnet3"
}
],
"datastore": "{{user `vsphere_datastore`}}",
"folder": "{{user `vsphere_folder`}}",
"CPUs": "{{user `vsphere_cpu`}}",
"RAM": "{{user `vsphere_memory`}}",
"RAM_reserve_all": true,
"firmware": "bios",
"disk_controller_type": ["lsilogic-sas", "lsilogic-sas"],
"storage": [
{
"disk_size": "{{user `vsphere_disk_size_sda`}}",
"disk_thin_provisioned": true,
"disk_controller_index": 0
},
{
"disk_size": "{{user `vsphere_disk_size_sdb`}}",
"disk_thin_provisioned": true,
"disk_controller_index": 0
},
{
"disk_size": "{{user `vsphere_disk_size_sdc`}}",
"disk_thin_provisioned": true,
"disk_controller_index": 1
}
],
"export": {
"force": true,
"output_directory": "../../../output-main/vmware-vsphere-{{user `version`}}"
}
}
],
"post-processors":
[
{
"type": "manifest",
"output": "{{user `vm_name`}}-{{user `version`}}_manifest.json",
"custom_data": {
"version": "{{user `version`}}"
}
},
{
"type": "shell-local",
"environment_vars": [
"VM_VERSION={{user `version`}}",
"VM_NAME={{user `vm_name`}}"
],
"execute_command": ["powershell.exe", "{{.Vars}} {{.Script}}"],
"env_var_format": "$env:%s=\"%s\"; ",
"only_on": ["windows"],
"script": "../../../scripts/post-processing/create-info-json.ps1"
},
{
"keep_input_artifact": true,
"output": "../../../boxes/{{.Provider}}-{{user `version`}}/{{user `vm_name`}}-{{user `version`}}.box",
"type": "vagrant",
"vagrantfile_template": "../../../boxes/kx.as.code-main-virtualbox.Vagrantfile",
"only": ["{{user `vm_name`}}-virtualbox"],
"include": [
"../../../boxes/virtualbox-{{user `version`}}/info.json",
"{{user `vm_name`}}-{{user `version`}}_manifest.json"
]
},
{
"keep_input_artifact": true,
"output": "../../../boxes/vmware-desktop-{{user `version`}}/{{user `vm_name`}}-{{user `version`}}.box",
"type": "vagrant",
"vagrantfile_template": "../../../boxes/kx.as.code-main-vmware.Vagrantfile",
"only": ["{{user `vm_name`}}-vmware-desktop"],
"include": [
"../../../boxes/vmware-desktop-{{user `version`}}/info.json",
"{{user `vm_name`}}-{{user `version`}}_manifest.json"
]
},
{
"type": "shell-local",
"environment_vars": [
"VM_VERSION={{user `version`}}",
"VM_NAME={{user `vm_name`}}"
],
"execute_command": ["powershell.exe", "{{.Vars}} {{.Script}}"],
"env_var_format": "$env:%s=\"%s\"; ",
"only_on": ["windows"],
"script": "../../../scripts/post-processing/move-manifest-json.ps1"
},
{
"type": "shell-local",
"environment_vars": [
"VM_VERSION={{user `version`}}",
"VM_NAME={{user `vm_name`}}",
"PROVIDER={{.Provider}}"
],
"execute_command": ["powershell.exe", "{{.Vars}} {{.Script}}"],
"env_var_format": "$env:%s=\"%s\"; ",
"only_on": ["windows"],
"script": "../../../scripts/post-processing/export-vmware-ova.ps1",
"only": ["{{user `vm_name`}}-vmware-desktop"]
},
{
"type": "shell-local",
"environment_vars": [
"VM_VERSION={{user `version`}}",
"VM_NAME={{user `vm_name`}}",
"PROVIDER={{.Provider}}"
],
"execute_command": ["powershell.exe", "{{.Vars}} {{.Script}}"],
"env_var_format": "$env:%s=\"%s\"; ",
"only_on": ["windows"],
"scripts": [
"../../../scripts/post-processing/create-metadata-json.ps1",
"../../../scripts/post-processing/add-vagrant-box.ps1"
]
}
],
"provisioners": [
{
"environment_vars": [
"VM_USER={{user `vm_user`}}",
"VM_PASSWORD={{user `vm_password`}}",
"KX_HOME={{user `kx_home`}}",
"SKELDIR={{user `kx_home`}}/skel",
"SHARED_GIT_REPOSITORIES={{user `kx_home`}}/git",
"INSTALLATION_WORKSPACE={{user `kx_home`}}/workspace"
],
"scripts": [
"../../../scripts/base/directories.sh",
"../../../scripts/base/vagrant-user.sh",
"../../../scripts/base/kx-user.sh",
"../../../scripts/base/update.sh"
],
"type": "shell",
"start_retry_timeout": "15m",
"expect_disconnect": "true"
},
{
"environment_vars": [
"VM_USER={{user `vm_user`}}",
"VBOX_GUEST_ADDITIONS_DEB_URL={{user `vbox_guest_additions_deb_url`}}",
"VBOX_GUEST_ADDITIONS_DEB_CHECKSUM={{user `vbox_guest_additions_deb_checksum`}}"
],
"script":"../../../scripts/base/virtualbox.sh",
"only": ["{{user `vm_name`}}-virtualbox"],
"type": "shell"
},
{
"script": "../../../scripts/base/vmware.sh",
"only": ["{{user `vm_name`}}-vmware-desktop"],
"type": "shell"
},
{
"script": "../../../scripts/base/vmware.sh",
"only": ["{{user `vm_name`}}-vmware-vsphere"],
"type": "shell"
},
{
"scripts": [
"../../../scripts/base/cleanup.sh",
"../../../scripts/base/localtime.sh",
"../../../scripts/base/power.sh",
"../../../scripts/base/network.sh"
],
"type": "shell",
"pause_before": "60s",
"start_retry_timeout": "15m",
"expect_disconnect": "true"
},
{
"type": "file",
"source": "../../../dependencies/skel",
"destination": "{{user `kx_home`}}"
},
{
"type": "file",
"source": "../../../dependencies/theme",
"destination": "{{user `kx_home`}}/workspace/theme"
},
{
"type": "file",
"source": "../../../scripts/main-node",
"destination": "{{user `kx_home`}}/workspace/scripts"
},
{
"type": "file",
"source": "../../../../versions.json",
"destination": "{{user `kx_home`}}/workspace/versions.json"
},
{
"environment_vars": [
"BASE_IMAGE_SSH_USER={{user `base_image_ssh_user`}}",
"VM_USER={{user `vm_user`}}",
"VM_PASSWORD={{user `vm_password`}}",
"GIT_SOURCE_BRANCH={{user `git_source_branch`}}",
"GITHUB_USER={{user `github_user`}}",
"GITHUB_TOKEN={{user `github_token`}}",
"VERSION={{user `version`}}",
"KUBE_VERSION={{user `kube_version`}}",
"COMPUTE_ENGINE_BUILD={{user `compute_engine_build`}}",
"KX_HOME={{user `kx_home`}}",
"SKELDIR={{user `kx_home`}}/skel",
"SHARED_GIT_REPOSITORIES={{user `kx_home`}}/git",
"INSTALLATION_WORKSPACE={{user `kx_home`}}/workspace"
],
"scripts": [
"../../../scripts/common/motd.sh",
"../../../scripts/common/kx.as.code.sh",
"../../../scripts/common/tools.sh",
"../../../scripts/common/powerline.sh",
"../../../scripts/common/docker.sh"
],
"type": "shell",
"pause_before": "60s",
"start_retry_timeout": "15m",
"expect_disconnect": "true"
},
{
"environment_vars": [
"BASE_IMAGE_SSH_USER={{user `base_image_ssh_user`}}",
"VM_USER={{user `vm_user`}}",
"VM_PASSWORD={{user `vm_password`}}",
"GIT_SOURCE_USER={{user `git_source_user`}}",
"GIT_SOURCE_TOKEN={{user `git_source_token`}}",
"GIT_SOURCE_URL={{user `git_source_url`}}",
"GIT_SOURCE_BRANCH={{user `git_source_branch`}}",
"VERSION={{user `version`}}",
"KX_HOME={{user `kx_home`}}",
"SKELDIR={{user `kx_home`}}/skel",
"SHARED_GIT_REPOSITORIES={{user `kx_home`}}/git",
"INSTALLATION_WORKSPACE={{user `kx_home`}}/workspace",
"COMPUTE_ENGINE_BUILD={{user `compute_engine_build`}}"
],
"scripts": [
"../../../scripts/main-node/tools.sh",
"../../../scripts/main-node/dns.sh",
"../../../scripts/main-node/kx.as.code.sh",
"../../../scripts/main-node/profile.sh",
"../../../scripts/main-node/look-and-feel.sh",
"../../../scripts/main-node/rabbitmq.sh",
"../../../scripts/main-node/vscode.sh",
"../../../scripts/main-node/update-skel.sh",
"../../../scripts/main-node/cleanup.sh"
],
"type": "shell",
"pause_before": "60s",
"start_retry_timeout": "15m",
"expect_disconnect": "true"
}
],
"variables": {
"hostname": "kx-main",
"kx_home": "/usr/share/kx.as.code",
"boot_command": "<esc><wait>install <wait> preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}} <wait>debian-installer=en_US.UTF-8 <wait>auto <wait>locale=en_US.UTF-8 <wait>kbd-chooser/method=de <wait>keyboard-configuration/xkb-keymap=de <wait>netcfg/get_hostname={{ .Name }} <wait>netcfg/get_domain=vagrantup.com <wait>fb=false <wait>debconf/frontend=noninteractive <wait>console-setup/ask_detect=false <wait>console-keymaps-at/keymap=us <wait>grub-installer/bootdev=/dev/sda <wait><enter><wait>",
"disable_ipv6": "true",
"disk_size": "153600",
"headless": "true",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "eb3f96fd607e4b67e80f4fc15670feb7d9db5be50f4ca8d0bf07008cb025766b",
"iso_checksum_type": "sha256",
"iso_path": "iso",
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.7.0-amd64-netinst.iso",
"iso_file": "debian-11.7.0-amd64-netinst.iso",
"guest_additions_url": "https://download.virtualbox.org/virtualbox/7.0.12/VBoxGuestAdditions_7.0.12.iso",
"guest_additions_checksum": "b37f6aabe5a32e8b96ccca01f37fb49f4fd06674f1b29bc8fe0f423ead37b917",
"vbox_guest_additions_deb_url": "",
"vbox_guest_additions_deb_checksum": "",
"no_proxy": "{{env `no_proxy`}}",
"preseed_path": "preseed-main.cfg",
"shutdown_command": "echo 'vagrant' | sudo -Srm -rf shutdown -P now",
"ssh_fullname": "KX Hero",
"update": "true",
"video_memory": "128",
"virtualbox_guest_os_type": "Debian_64",
"base_image_ssh_user": "vagrant",
"vm_name": "kx-main",
"vm_suffix": "-demo",
"vmware_guest_os_type": "ubuntu64Guest"
}
}