-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Seth Thomas <sthomas@chef.io>
- Loading branch information
Seth Thomas
committed
Nov 30, 2016
1 parent
eba716b
commit 7a78efe
Showing
8 changed files
with
558 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | ||
"guest_os_type": "Oracle", | ||
"hard_drive_interface": "sata", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-virtualbox", | ||
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "virtualbox-iso", | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--memory", | ||
"{{ user `memory` }}" | ||
], | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--cpus", | ||
"{{ user `cpus` }}" | ||
] | ||
], | ||
"virtualbox_version_file": ".vbox_version", | ||
"vm_name": "{{ user `template` }}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_os_type": "oraclelinux", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-vmware", | ||
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"tools_upload_flavor": "linux", | ||
"type": "vmware-iso", | ||
"vm_name": "{{ user `template` }}", | ||
"vmx_data": { | ||
"cpuid.coresPerSocket": "1", | ||
"memsize": "{{ user `memory` }}", | ||
"numvcpus": "{{ user `cpus` }}" | ||
} | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_os_type": "centos", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-parallels", | ||
"parallels_tools_flavor": "lin", | ||
"prlctl": [ | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--memsize", | ||
"{{ user `memory` }}" | ||
], | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--cpus", | ||
"{{ user `cpus` }}" | ||
] | ||
], | ||
"prlctl_version_file": ".prlctl_version", | ||
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "parallels-iso", | ||
"vm_name": "{{ user `template` }}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-qemu", | ||
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "qemu", | ||
"vm_name": "{{ user `template` }}" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"output": "builds/{{user `box_basename`}}.{{.Provider}}.box", | ||
"type": "vagrant" | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"destination": "/tmp/bento-metadata.json", | ||
"source": "{{user `metadata`}}", | ||
"type": "file" | ||
}, | ||
{ | ||
"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}}'", | ||
"scripts": [ | ||
"scripts/common/metadata.sh", | ||
"scripts/centos/networking.sh", | ||
"scripts/common/sshd.sh", | ||
"scripts/common/vagrant.sh", | ||
"scripts/common/virtualbox.sh", | ||
"scripts/common/vmware.sh", | ||
"scripts/common/parallels.sh", | ||
"scripts/centos/cleanup.sh", | ||
"scripts/common/minimize.sh" | ||
], | ||
"type": "shell" | ||
} | ||
], | ||
"variables": { | ||
"arch": "32", | ||
"box_basename": "oracle-6.8-i386", | ||
"build_timestamp": "{{isotime \"20060102150405\"}}", | ||
"cpus": "1", | ||
"disk_size": "40960", | ||
"git_revision": "__unknown_git_revision__", | ||
"headless": "", | ||
"http_proxy": "{{env `http_proxy`}}", | ||
"https_proxy": "{{env `https_proxy`}}", | ||
"iso_checksum": "809eb9e9f44683ff875c64a00a85576ef93b679e98919f4fde8f856af9dac356", | ||
"iso_checksum_type": "sha256", | ||
"iso_name": "OracleLinux-R6-U8-Server-i386-dvd.iso", | ||
"ks_path": "centos-6.8/ks.cfg", | ||
"memory": "512", | ||
"metadata": "floppy/dummy_metadata.json", | ||
"mirror": "http://mirrors.dotsrc.org/oracle-linux", | ||
"mirror_directory": "OL6/U8/i386", | ||
"name": "oracle-6.8-i386", | ||
"no_proxy": "{{env `no_proxy`}}", | ||
"template": "oracle-6.8-i386", | ||
"version": "2.2.TIMESTAMP" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
{ | ||
"builders": [ | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", | ||
"guest_os_type": "Oracle_64", | ||
"hard_drive_interface": "sata", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-virtualbox", | ||
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "virtualbox-iso", | ||
"vboxmanage": [ | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--memory", | ||
"{{ user `memory` }}" | ||
], | ||
[ | ||
"modifyvm", | ||
"{{.Name}}", | ||
"--cpus", | ||
"{{ user `cpus` }}" | ||
] | ||
], | ||
"virtualbox_version_file": ".vbox_version", | ||
"vm_name": "{{ user `template` }}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_os_type": "oraclelinux-64", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-vmware", | ||
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"tools_upload_flavor": "linux", | ||
"type": "vmware-iso", | ||
"vm_name": "{{ user `template` }}", | ||
"vmx_data": { | ||
"cpuid.coresPerSocket": "1", | ||
"memsize": "{{ user `memory` }}", | ||
"numvcpus": "{{ user `cpus` }}" | ||
} | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"guest_os_type": "centos", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-parallels", | ||
"parallels_tools_flavor": "lin", | ||
"prlctl": [ | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--memsize", | ||
"{{ user `memory` }}" | ||
], | ||
[ | ||
"set", | ||
"{{.Name}}", | ||
"--cpus", | ||
"{{ user `cpus` }}" | ||
] | ||
], | ||
"prlctl_version_file": ".prlctl_version", | ||
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "parallels-iso", | ||
"vm_name": "{{ user `template` }}" | ||
}, | ||
{ | ||
"boot_command": [ | ||
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>" | ||
], | ||
"boot_wait": "10s", | ||
"disk_size": "{{user `disk_size`}}", | ||
"headless": "{{ user `headless` }}", | ||
"http_directory": "http", | ||
"iso_checksum": "{{user `iso_checksum`}}", | ||
"iso_checksum_type": "{{user `iso_checksum_type`}}", | ||
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}", | ||
"output_directory": "packer-{{user `template`}}-qemu", | ||
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p", | ||
"ssh_password": "vagrant", | ||
"ssh_port": 22, | ||
"ssh_username": "vagrant", | ||
"ssh_wait_timeout": "10000s", | ||
"type": "qemu", | ||
"vm_name": "{{ user `template` }}" | ||
} | ||
], | ||
"post-processors": [ | ||
{ | ||
"output": "builds/{{user `box_basename`}}.{{.Provider}}.box", | ||
"type": "vagrant" | ||
} | ||
], | ||
"provisioners": [ | ||
{ | ||
"destination": "/tmp/bento-metadata.json", | ||
"source": "{{user `metadata`}}", | ||
"type": "file" | ||
}, | ||
{ | ||
"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}}'", | ||
"scripts": [ | ||
"scripts/common/metadata.sh", | ||
"scripts/centos/networking.sh", | ||
"scripts/common/sshd.sh", | ||
"scripts/common/vagrant.sh", | ||
"scripts/common/virtualbox.sh", | ||
"scripts/common/vmware.sh", | ||
"scripts/common/parallels.sh", | ||
"scripts/centos/cleanup.sh", | ||
"scripts/common/minimize.sh" | ||
], | ||
"type": "shell" | ||
} | ||
], | ||
"variables": { | ||
"arch": "64", | ||
"box_basename": "oracle-6.7", | ||
"build_timestamp": "{{isotime \"20060102150405\"}}", | ||
"cpus": "1", | ||
"disk_size": "40960", | ||
"git_revision": "__unknown_git_revision__", | ||
"headless": "", | ||
"http_proxy": "{{env `http_proxy`}}", | ||
"https_proxy": "{{env `https_proxy`}}", | ||
"iso_checksum": "de114b9a108ad9b3c9a27764fddffbc1019b9b7913ee6d9b717f65041780c879", | ||
"iso_checksum_type": "sha256", | ||
"iso_name": "OracleLinux-R6-U8-Server-x86_64-dvd.iso", | ||
"ks_path": "centos-6.8/ks.cfg", | ||
"memory": "512", | ||
"metadata": "floppy/dummy_metadata.json", | ||
"mirror": "http://mirrors.dotsrc.org/oracle-linux", | ||
"mirror_directory": "OL6/U8/x86_64", | ||
"name": "oracle-6.8", | ||
"no_proxy": "{{env `no_proxy`}}", | ||
"template": "oracle-6.8-x86_64", | ||
"version": "2.0.TIMESTAMP" | ||
} | ||
} |
Oops, something went wrong.