-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr1centos6.json
45 lines (45 loc) · 1.66 KB
/
r1centos6.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
{
"builders": [
{
"type": "virtualbox-iso",
"name": "r1centos6-vbox",
"vm_name": "r1centos6",
"guest_os_type": "RedHat_64",
"iso_url": "http://mirrors.seas.harvard.edu/centos/6.6/isos/x86_64/CentOS-6.6-x86_64-minimal.iso",
"iso_checksum": "eb3c8be6ab668e6d83a118323a789e6c",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"shutdown_command": "sudo -S shutdown -P now",
"http_directory": "http",
"guest_additions_mode": "attach",
"boot_command": [
"<wait><esc><esc>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter>"
]
}],
"provisioners": [{
"type": "shell",
"inline_shebang":"/bin/bash",
"start_retry_timeout": "1m",
"inline": [
"sleep 15",
"echo Installing utilities...",
"sudo yum -y install epel-release",
"sudo yum -y install htop tmux vim iotop jnettop python-json",
"echo Installing Vbox Guest Additions",
"sudo mkdir /tmp/vboxguest",
"sudo mount -t iso9660 -o ro /dev/sr1 /tmp/vboxguest",
"sudo yum -y --enablerepo rpmforge install dkms",
"sudo yum -y groupinstall 'Development Tools'",
"sudo yum -y install kernel-devel-2.6.32-504.el6.x86_64",
"cd /tmp/vboxguest",
"sudo ./VBoxLinuxAdditions.run",
"cd /tmp",
"sudo umount /tmp/vboxguest",
"sudo rmdir /tmp/vboxguest",
"echo Image Provisioned!"
]
}],
"post-processors":["vagrant"]
}