forked from russmckendrick/packer-centos8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCentOS_8.json
72 lines (72 loc) · 2.22 KB
/
CentOS_8.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
{
"variables": {
"version": "1905",
"url": "http://mirrors.mit.edu/centos/8/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso",
"checksum": "ea17ef71e0df3f6bf1d4bf1fc25bec1a76d1f211c115d39618fe688be34503e8",
"shutdown_command": "sudo /sbin/halt -p",
"headless": "true"
},
"provisioners": [
{
"type": "shell",
"execute_command": "sudo {{.Vars}} sh {{.Path}}",
"scripts": [
"scripts/vagrant.sh",
"scripts/update.sh",
"scripts/vmtools.sh",
"scripts/zerodisk.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "CentOS-8-x86_64-{{user `version`}}-{{.Provider}}.box"
}
],
"builders": [
{
"type": "virtualbox-iso",
"iso_url": "{{user `url`}}",
"iso_checksum": "{{user `checksum`}}",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "10m",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"disk_size": "100000",
"hard_drive_interface": "sata",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_additions_sha256": "b81d283d9ef88a44e7ac8983422bead0823c825cbfe80417423bd12de91b8046",
"guest_os_type": "RedHat_64",
"headless": "{{user `headless`}}",
"http_directory": "http",
"shutdown_command": "{{user `shutdown_command`}}",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "512" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
]
},
{
"type": "vmware-iso",
"iso_url": "{{user `url`}}",
"iso_checksum": "{{user `checksum`}}",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "20m",
"disk_size": "100000",
"tools_upload_flavor": "linux",
"guest_os_type": "centos-64",
"headless": "{{user `headless`}}",
"shutdown_command": "{{user `shutdown_command`}}",
"http_directory": "http",
"vmx_remove_ethernet_interfaces": "true",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
]
}
]
}