-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcentos71.json
46 lines (46 loc) · 1.7 KB
/
centos71.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
{
"variables": {
},
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"iso_url": "CentOS-7-x86_64-Minimal-1503-01.iso",
"iso_checksum": "d07ab3e615c66a8b2e9a50f4852e6a77",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "600s",
"vm_name": "CentOS 7.1 Vagrant",
"http_directory": "./",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg",
"<enter><wait>"
],
"shutdown_command": "echo 'vagrant' |sudo -S shutdown -P now",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--usb", "off"],
["modifyvm", "{{.Name}}", "--audio", "none"]
]
}],
"provisioners": [{
"type": "shell",
"inline": [
"echo skip sudo yum -y install https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm",
"echo skip sudo yum -y install gcc make bzip2 kernel-headers kernel-devel dkms",
"echo skip sudo yum -y clean all",
"sudo mount -o loop /home/vagrant/VBoxGuestAdditions.iso /mnt",
"sudo sh /mnt/VBoxLinuxAdditions.run --nox11 || true",
"sudo umount /mnt",
"echo skip sudo /etc/rc.d/init.d/vboxadd setup",
"sudo rm -f /home/vagrant/VBoxGuestAdditions.iso"
]
}],
"post-processors": [{
"type": "vagrant",
"output": "./centos-71-x64-{{.Provider}}-minimal.box",
"vagrantfile_template": "./Vagrantfile"
}]
}