-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos_base.json
executable file
·73 lines (72 loc) · 2.47 KB
/
centos_base.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": {
"vm_purpose": null,
"centos_ver_short": null,
"centos_ver_full": null,
"iso_file": null,
"iso_checksum": null,
"home": "{{env `HOME`}}"
},
"builders": [
{
"name": "vbox",
"output_directory": "./output-centos-{{user `centos_ver_full`}}-{{user `vm_purpose`}}-base",
"vm_name": "centos-{{user `centos_ver_full`}}-{{user `vm_purpose`}}-base",
"guest_os_type": "RedHat_64",
"iso_checksum_type": "sha256",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_urls": [
"{{user `iso_file`}}",
"{{user `home`}}/Downloads/{{user `iso_file`}}",
"http://mirrors.ocf.berkeley.edu/centos/{{user `centos_ver_short`}}/isos/x86_64/{{user `iso_file`}}"
],
"type": "virtualbox-iso",
"format": "ova",
"boot_wait": "10s",
"headless": false,
"ssh_username": "default",
"ssh_password": "default",
"ssh_timeout": "1h",
"disk_size": 10240,
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"http_directory": "kickstart",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos_{{user `centos_ver_short`}}_{{user `vm_purpose`}}.cfg<enter>"
],
"shutdown_command": "echo 'default' | sudo -S /sbin/halt -h -p"
},
{
"name": "vmware",
"output_directory": "./output-centos-{{user `centos_ver_full`}}-{{user `vm_purpose`}}-base",
"vm_name": "centos-{{user `centos_ver_full`}}-{{user `vm_purpose`}}-base",
"iso_checksum_type": "sha256",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_urls": [
"{{user `iso_file`}}",
"{{user `home`}}/Downloads/{{user `iso_file`}}",
"http://mirrors.ocf.berkeley.edu/centos/{{user `centos_ver_short`}}/isos/x86_64/{{user `iso_file`}}"
],
"type": "vmware-iso",
"format": "vmx",
"boot_wait": "10s",
"headless": false,
"ssh_username": "default",
"ssh_password": "default",
"ssh_timeout": "1h",
"disk_size": 10240,
"http_directory": "kickstart",
"vmx_data": {
"memsize": "2048",
"numvcpus": "1",
"cpuid.coresPerSocket": "1"
},
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos_{{user `centos_ver_short`}}_{{user `vm_purpose`}}.cfg<enter>"
],
"shutdown_command": "echo 'default' | sudo -S /sbin/halt -h -p"
}
]
}