-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcentos.json
More file actions
79 lines (79 loc) · 2 KB
/
centos.json
File metadata and controls
79 lines (79 loc) · 2 KB
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
{
"_comment": "Base template. Run by executing packer -var-file=<variable_file> centos.json",
"builders": [
{
"type": "virtualbox-iso",
"headless": "false",
"iso_checksum": "937bf0a7b0932817f84f7230f15ed88911bbbd85c0c958680792b7f8d8f9c1a9",
"iso_checksum_type": "sha256",
"iso_target_path": "iso/CentOS-7-x86_64-NetInstall-1804.iso",
"iso_urls": [
"iso/CentOS-7-x86_64-NetInstall-1804.iso",
"http://download.nus.edu.sg/mirror/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1804.iso"
],
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "60m",
"boot_command": "<tab> ks=hd:fd0:/anaconda-ks.cfg <enter><wait>",
"disk_size": "204800",
"floppy_files": [
"floppy/govtechstacksg/anaconda-ks.cfg"
],
"guest_os_type": "RedHat_64",
"ssh_port": "22",
"output_directory": "output/govtechstacksg-centos",
"shutdown_command": "sudo shutdown -h now",
"vm_name": "govtechstacksg-centos",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"4096"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
],
[
"modifyvm",
"{{.Name}}",
"--vram",
"128"
],
[
"modifyvm",
"{{.Name}}",
"--accelerate3d",
"on"
]
],
"format": "ova",
"guest_additions_mode": "upload"
}
],
"post-processors": [
[
{
"type": "vagrant",
"keep_input_artifact": true,
"compression_level": "9",
"output": "output/govtechstacksg-centos.box"
}
]
],
"provisioners": [
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/provision.sh",
"scripts/cleanup.sh"
],
"type": "shell",
"pause_before": "10s",
"binary": true
}
]
}