Skip to content

Commit

Permalink
Add templates for Oracle 5.x, 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian C. Dunn committed Mar 6, 2014
1 parent fa90e3d commit 6c89205
Show file tree
Hide file tree
Showing 5 changed files with 378 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -97,7 +97,7 @@ Congratulations! You now have box(es) in the ../builds directory that you can th

### Proprietary Boxes

** Mac OS X (10.7, 10.8, and 10.9), Red Hat Enterprise Linux, and SUSE Linux Enterprise Server templates are provided; however, their ISOs are not publicly retrievable. The URLs in those templates are bogus. ** For RHEL and SLES, you should substitute your server where you host the ISOs, using the mirror variable as above.
Mac OS X (10.7, 10.8, and 10.9), Red Hat Enterprise Linux, and SUSE Linux Enterprise Server templates are provided. However, their ISOs are not publicly retrievable and as such, the URLs in those templates are bogus. For RHEL and SLES, you should substitute your server where you host the ISOs, using the mirror variable as above.

#### Mac OS X Boxes

Expand All @@ -107,7 +107,7 @@ To build a Mac OS X box, you will need to start with an installer for your desir

$ packer build -var 'iso_checksum=<checksum>' -var 'iso_url=<iso_url>' macosx-10.9.json

There is a known issue where test-kitchen starts a Mac OS X box correctly, but `vagrant up` fails due to the absence of the HGFS kernel module. This is due to a silent failure during the VMware tools installation and can be corrected by installing the VMware tools on the Mac OS X box manually.
There is a known issue where [test-kitchen](http://kitchen.ci/) starts a Mac OS X box correctly, but `vagrant up` fails due to the absence of the HGFS kernel module. This is due to a silent failure during the VMware tools installation and can be corrected by installing the VMware tools on the Mac OS X box manually.

### Veewee Definitions

Expand Down
94 changes: 94 additions & 0 deletions packer/oracle-5.10-i386.json
@@ -0,0 +1,94 @@
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Oracle",
"http_directory": "http",
"iso_checksum": "5a9216dd69f17b9dd8f64ed539629741"
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U10-Server-i386-dvd.iso",
"output_directory": "packer-oracle-5.10-i386-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",
"384"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-oracle-5.10-i386"
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "oraclelinux",
"http_directory": "http",
"iso_checksum": "5a9216dd69f17b9dd8f64ed539629741"
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U10-Server-i386-dvd.iso",
"output_directory": "packer-oracle-5.10-i386-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": "packer-oracle-5.10-i386",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "384",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_oracle-5.10-i386_chef-{{user `chef_version`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/common/vagrant.sh",
"scripts/common/sshd.sh",
"scripts/common/vmtools.sh",
"scripts/common/chef.sh",
"scripts/centos/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.dotsrc.org/oracle-linux/EL5/U10/i386"
}
}

94 changes: 94 additions & 0 deletions packer/oracle-5.10-x86_64.json
@@ -0,0 +1,94 @@
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Oracle_64",
"http_directory": "http",
"iso_checksum": "1aa0a1246b1a55108abf20aa2bcac00e",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U10-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-5.10-x86_64-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",
"384"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-oracle-5.10-x86_64"
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "oraclelinux-64",
"http_directory": "http",
"iso_checksum": "1aa0a1246b1a55108abf20aa2bcac00e",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U10-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-5.10-x86_64-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": "packer-oracle-5.10-x86_64",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "384",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_oracle-5.10_chef-{{user `chef_version`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/common/vagrant.sh",
"scripts/common/sshd.sh",
"scripts/common/vmtools.sh",
"scripts/common/chef.sh",
"scripts/centos/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.dotsrc.org/oracle-linux/EL5/U10/x86_64"
}
}

94 changes: 94 additions & 0 deletions packer/oracle-6.5-i386.json
@@ -0,0 +1,94 @@
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Oracle",
"http_directory": "http",
"iso_url": "{{user `mirror`}}/OracleLinux-R6-U5-Server-i386-dvd.iso",
"iso_checksum": "5bd0a06295a4e50907da16d99a2f6cff54596b30",
"iso_checksum_type": "sha1",
"output_directory": "packer-oracle-6.5-i386-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",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-oracle-6.5-i386"
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "oraclelinux",
"http_directory": "http",
"iso_url": "{{user `mirror`}}/OracleLinux-R6-U5-Server-i386-dvd.iso",
"iso_checksum": "5bd0a06295a4e50907da16d99a2f6cff54596b30",
"iso_checksum_type": "sha1",
"output_directory": "packer-oracle-6.5-i386-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": "packer-oracle-6.5-i386",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_oracle-6.5-i386_chef-{{user `chef_version`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/centos/fix-slow-dns.sh",
"scripts/common/sshd.sh",
"scripts/common/vagrant.sh",
"scripts/common/vmtools.sh",
"scripts/common/chef.sh",
"scripts/centos/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.dotsrc.org/oracle-linux/OL6/U5/i386"
}
}
94 changes: 94 additions & 0 deletions packer/oracle-6.5-x86_64.json
@@ -0,0 +1,94 @@
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Oracle_64",
"http_directory": "http",
"iso_checksum": "a65041fbe0ba67e3ff6f5f93804a8f47d5b5f132",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/OracleLinux-R6-U5-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-6.5-x86_64-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",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-oracle-6.5-x86_64"
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "oraclelinux-64",
"http_directory": "http",
"iso_checksum": "a65041fbe0ba67e3ff6f5f93804a8f47d5b5f132",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/OracleLinux-R6-U5-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-6.5-x86_64-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": "packer-oracle-6.5-x86_64",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_oracle-6.5_chef-{{user `chef_version`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/centos/fix-slow-dns.sh",
"scripts/common/sshd.sh",
"scripts/common/vagrant.sh",
"scripts/common/vmtools.sh",
"scripts/common/chef.sh",
"scripts/centos/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.dotsrc.org/oracle-linux/OL6/U5/x86_64"
}
}

0 comments on commit 6c89205

Please sign in to comment.