-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoracle6_64.json
76 lines (76 loc) · 2.17 KB
/
oracle6_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"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/V37084-01.iso",
"iso_checksum": "744fc1663519b4d54da1345669fcee52",
"iso_checksum_type": "md5",
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_wait_timeout": "90m",
"guest_additions_path": "VBoxGuestAdditions_4.3.6.iso",
"ssh_port": 22,
"http_directory" : "http",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/cfg_oracle/oracle.cfg<enter><wait>"
],
"shutdown_command": "echo {{user `ssh_pass`}} | sudo -S shutdown -P now",
"vboxmanage": [
["modifyvm","{{.Name}}","--memory","4800"],
["modifyvm","{{.Name}}","--cpus","2"]
]
},
{
"type": "vmware-iso",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/cfg_oracle/oracle.cfg<enter><wait>"
],
"boot_wait": "30s",
"disk_size": 20480,
"guest_os_type": "rhel6-64",
"http_directory": "http",
"iso_checksum": "744fc1663519b4d54da1345669fcee52",
"iso_checksum_type": "md5",
"iso_url": "iso/V37084-01.iso",
"skip_compaction": true,
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_port": 22,
"ssh_wait_timeout": "90m",
"shutdown_command": "echo '/sbin/halt -h -p' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"tools_upload_flavor": "linux",
"vmx_data": {
"memsize": "2048",
"numvcpus": "2",
"cpuid.coresPerSocket": "1",
"scsi0.virtualDev": "lsisas1068"
}
}
],
"post-processors" : [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "oracle6_64_{{.Provider}}.box"
}
]
}