1{
2 "builders": [
3 {
4 "boot_command": "{{ user `boot_command` }}",
5 "boot_wait": "5s",
6 "cpus": "{{ user `cpus` }}",
7 "disk_size": "{{user `disk_size`}}",
8 "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
9 "guest_additions_url": "{{ user `guest_additions_url` }}",
10 "guest_os_type": "Oracle_64",
11 "hard_drive_interface": "sata",
12 "headless": "{{ user `headless` }}",
13 "http_directory": "{{user `http_directory`}}",
14 "iso_checksum": "{{user `iso_checksum`}}",
15 "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
16 "memory": "{{ user `memory` }}",
17 "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox",
18 "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
19 "ssh_password": "vagrant",
20 "ssh_port": 22,
21 "ssh_timeout": "10000s",
22 "ssh_username": "vagrant",
23 "type": "virtualbox-iso",
24 "virtualbox_version_file": ".vbox_version",
25 "vm_name": "{{ user `template` }}"
26 }
27 ],
28 "post-processors": [
29 {
30 "output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box",
31 "type": "vagrant"
32 }
33 ],
34 "provisioners": [
35 {
36 "environment_vars": [
37 "HOME_DIR=/home/vagrant",
38 "http_proxy={{user `http_proxy`}}",
39 "https_proxy={{user `https_proxy`}}",
40 "no_proxy={{user `no_proxy`}}"
41 ],
42 "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
43 "expect_disconnect": true,
44 "scripts": [
45 "{{template_dir}}/../centos/scripts/update.sh",
46 "{{template_dir}}/../centos/scripts/networking.sh",
47 "{{template_dir}}/../_common/motd.sh",
48 "{{template_dir}}/../_common/sshd.sh",
49 "{{template_dir}}/../_common/vagrant.sh",
50 "{{template_dir}}/../_common/virtualbox.sh",
51 "{{template_dir}}/../_common/vmware.sh",
52 "{{template_dir}}/../_common/parallels.sh",
53 "{{template_dir}}/../centos/scripts/cleanup.sh",
54 "{{template_dir}}/../_common/minimize.sh"
55 ],
56 "type": "shell"
57 }
58 ],
59 "variables": {
60 "box_basename": "oraclelinux8.3",
61 "build_directory": "../../builds",
62 "build_timestamp": "{{isotime \"20210819035100\"}}",
63 "cpus": "2",
64 "disk_size": "65536",
65 "git_revision": "__unknown_git_revision__",
66 "guest_additions_url": "",
67 "headless": "",
68 "http_directory": "{{template_dir}}/../centos/http",
69 "http_proxy": "{{env `http_proxy`}}",
70 "https_proxy": "{{env `https_proxy`}}",
71 "hyperv_generation": "1",
72 "hyperv_switch": "bento",
73 "iso_checksum": "771e383adfd5406d1a360ff24822011a88cbb45b6019e2f1095758c46a406aaa",
74 "iso_name": "OracleLinux-R8-U3-x86_64-dvd.iso",
75 "ks_path": "8/ks.cfg",
76 "memory": "2048",
77 "mirror": "",
78 "mirror_directory": "Volumes/DBA/voracle/bento/packer_templates/oraclelinux",
79 "name": "oraclelinux8.3",
80 "no_proxy": "{{env `no_proxy`}}",
81 "template": "oracle-8.3-x86_64",
82 "boot_command": "<up><wait><tab> inst.text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>",
83 "version": "TIMESTAMP"
84 }
85}