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