-
Notifications
You must be signed in to change notification settings - Fork 12
/
CentOS-7.json
52 lines (45 loc) · 1.59 KB
/
CentOS-7.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
{
"variables": {
"ssh_name": "vagrant",
"ssh_pass": "vagrant"
},
"builders": [{
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"headless": false,
"guest_os_type": "RedHat_64",
"disk_size": 81920,
"hard_drive_interface": "sata",
"iso_url": "http://mirror.linux.lg.ua/centos/7/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso",
"iso_checksum": "ee505335bcd4943ffc7e6e6e55e5aaa8da09710b6ceecda82a5619342f1d24d9",
"iso_checksum_type": "sha256",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos7/anaconda-ks.cfg<enter><wait>"
],
"boot_wait": "12s",
"http_directory": "http",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
],
"shutdown_command": "echo '{{user `ssh_name`}}'|sudo -S /sbin/halt -h -p"
}],
"post-processors": [{
"output": "build/CentOS-7.box",
"type": "vagrant"
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/centos7/vboxguest.sh",
"scripts/centos7/vagrant.sh",
"scripts/centos7/compact.sh"
]
}]
}