forked from CentOS/sig-cloud-instance-build
/
packer.json
54 lines (54 loc) · 1.78 KB
/
packer.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
{
"builders" : [{
"name": "centos-6",
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"hard_drive_interface": "sata",
"headless": "false",
"iso_interface": "sata",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"iso_url": "https://mirror1.hs-esslingen.de/pub/Mirrors/centos/6/isos/x86_64/CentOS-6.10-x86_64-netinstall.iso",
"iso_checksum": "56f7b078a3b443095ba006cdc85319c691251cda98c5d73d12ef6db7aff6b4c1",
"iso_checksum_type": "sha256",
"boot_command": [
"<tab><spacebar>",
"ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos6.ks<return>"
],
"http_directory": ".",
"ssh_username": "vagrant",
"ssh_private_key_file": "insecure_private_key",
"ssh_timeout": "60m",
"shutdown_command": "sudo poweroff"
},
{
"name": "centos-7",
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"hard_drive_interface": "sata",
"headless": "false",
"iso_interface": "sata",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "1024"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"iso_url": "http://mirror2.hs-esslingen.de/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-NetInstall-1810.iso",
"iso_checksum": "19d94274ef856c4dfcacb2e7cfe4be73e442a71dd65cc3fb6e46db826040b56e",
"iso_checksum_type": "sha256",
"boot_command": [
"<up><tab><spacebar>",
"inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos7.ks<return>"
],
"http_directory": ".",
"ssh_username": "vagrant",
"ssh_private_key_file": "insecure_private_key",
"ssh_timeout": "60m",
"shutdown_command": "sudo poweroff"
}],
"post-processors": [{
"type": "vagrant",
"output": "{{.BuildName}}_{{.Provider}}.box"
}]
}