-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker.json
35 lines (35 loc) · 1.12 KB
/
packer.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
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"iso_url": "./CentOS-6.5-x86_64-minimal.iso",
"iso_checksum": "0d9dc37b5dd4befa1c440d2174e88a87",
"iso_checksum_type": "md5",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "600s",
"vm_name": "centos65",
"http_directory": "./",
"boot_wait": "30s",
"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",
"script": "provision.sh"
}],
"post-processors": [{
"type": "vagrant",
"output": "./centos65_{{.BuildName}}_{{.Provider}}.box",
"vagrantfile_template": "./Vagrantfile"
}]
}