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 77 78 79 80 81 82 83 84 85 86
| { "builders": [ { "boot_command": [ "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" ], "boot_wait": "5s", "cpus": "{{ user `cpus` }}", "disk_size": "{{user `disk_size`}}", "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", "guest_additions_url": "{{ user `guest_additions_url` }}", "guest_os_type": "RedHat_64", "hard_drive_interface": "sata", "headless": "{{ user `headless` }}", "http_directory": "{{user `http_directory`}}", "iso_checksum": "{{user `iso_checksum`}}", "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", "memory": "{{ user `memory` }}", "output_directory": "{{ user `build_directory` }}/packer-{{user `template`}}-virtualbox", "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", "ssh_password": "vagrant", "ssh_port": 22, "ssh_timeout": "10000s", "ssh_username": "vagrant", "type": "virtualbox-iso", "virtualbox_version_file": ".vbox_version", "vm_name": "{{ user `template` }}" } ], "post-processors": [ { "output": "{{ user `build_directory` }}/{{user `box_basename`}}.{{.Provider}}.box", "type": "vagrant" } ], "provisioners": [ { "environment_vars": [ "HOME_DIR=/home/vagrant", "http_proxy={{user `http_proxy`}}", "https_proxy={{user `https_proxy`}}", "no_proxy={{user `no_proxy`}}" ], "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'", "expect_disconnect": true, "scripts": [ "{{template_dir}}/scripts/update.sh", "{{template_dir}}/../_common/motd.sh", "{{template_dir}}/../_common/sshd.sh", "{{template_dir}}/scripts/networking.sh", "{{template_dir}}/../_common/vagrant.sh", "{{template_dir}}/../_common/virtualbox.sh", "{{template_dir}}/../_common/vmware.sh", "{{template_dir}}/../_common/parallels.sh", "{{template_dir}}/scripts/cleanup.sh", "{{template_dir}}/../_common/minimize.sh" ], "type": "shell" } ], "variables": { "box_basename": "centos6.10", "build_directory": "../../builds", "build_timestamp": "{{isotime \"20210819214900\"}}", "cpus": "2", "disk_size": "65536", "git_revision": "__unknown_git_revision__", "guest_additions_url": "", "headless": "", "http_directory": "{{template_dir}}/http", "http_proxy": "{{env `http_proxy`}}", "https_proxy": "{{env `https_proxy`}}", "hyperv_generation": "1", "hyperv_switch": "bento", "iso_checksum": "6448e4ec53dce4fd4c6c56fa0a5274df2d87cdab4a3b194f2b9f28fd8cea7e27", "iso_name": "CentOS-6.10-x86_64-bin-DVD1.iso", "ks_path": "6/ks.cfg", "memory": "2048", "mirror": "", "mirror_directory": "Volumes/DBA/voracle/bento/packer_templates/centos", "name": "centos6.10", "no_proxy": "{{env `no_proxy`}}", "template": "centos-6.10-x86_64", "version": "TIMESTAMP" } }
|