-
Notifications
You must be signed in to change notification settings - Fork 26
/
oracle-linux-7.0-x86_64.json
62 lines (54 loc) · 1.71 KB
/
oracle-linux-7.0-x86_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
{
"variables": {
"iso_location": "/Users/edwin/Downloads",
"harddisk_size": "60960",
"vm_name": "OEL7_0",
"outputfile": "OEL7_0.box",
"compression": 6
},
"builders": [{
"vm_name": "{{user `vm_name`}}",
"output_directory": "build/{{user `vm_name`}}",
"type": "virtualbox-iso",
"virtualbox_version_file": ".vbox_version",
"headless": false,
"guest_os_type": "Oracle_64",
"hard_drive_interface": "sata",
"disk_size": "{{user `harddisk_size`}}",
"iso_url": "{{user `iso_location`}}/OracleLinux-R7-U0-Server-x86_64-dvd.iso",
"iso_checksum": "14107114f3eece76d16e5ec3fee5f524b09f9829b0ac38474ee676ddd4d2b9c2",
"iso_checksum_type": "sha256",
"boot_command": [
"<tab> net.ifnames=0 biosdevname=0 text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/OEL7_0-x86_64/ks.cfg<enter><wait>"
],
"boot_wait": "12s",
"http_directory": "http",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
],
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p"
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/afterconfig.sh",
"scripts/puppet-bootstrap/centos_7_x.sh",
"scripts/vboxguest.sh",
"scripts/compact.sh"
]
}],
"post-processors": [
{
"type": "vagrant",
"output": "build/{{user `outputfile`}}",
"compression_level": "{{user `compression`}}"
}
]
}