-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcentos6_64.json
49 lines (49 loc) · 1.3 KB
/
centos6_64.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
{
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/virtualbox.sh",
"scripts/vagrant.sh"
],
"override": {
"virtualbox-iso": {
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'"
}
}
}
],
"variables": {
"ssh_name": "vagrant",
"ssh_pass": "vagrant",
"hostname": "packerhost"
},
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"iso_url": "iso/CentOS-6.5-x86_64-bin-DVD1.iso",
"iso_checksum": "83221db52687c7b857e65bfe60787838",
"iso_checksum_type": "md5",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"guest_additions_path": "VBoxGuestAdditions_4.3.6.iso",
"ssh_wait_timeout": "90m",
"http_directory" : "http",
"ssh_port": 22,
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/cfg_centos/ks.cfg<enter><wait>"
],
"shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown -P now",
"vboxmanage": [
["modifyvm","{{.Name}}","--memory","4800"],
["modifyvm","{{.Name}}","--cpus", "2"]
]
}],
"post-processors" : [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "centos6_64_{{.Provider}}.box"
}
]
}