Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRY] Oracle Linux #473

Merged
merged 1 commit into from
Oct 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 39 additions & 27 deletions oracle-5.11-i386.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
Expand All @@ -11,11 +11,11 @@
"hard_drive_interface": "sata",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "f4ef2b868a0cccb736664136eca798ec",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-i386-dvd.iso",
"output_directory": "packer-oracle-5.11-i386-virtualbox",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"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",
Expand All @@ -40,18 +40,18 @@
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "oraclelinux",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "f4ef2b868a0cccb736664136eca798ec",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-i386-dvd.iso",
"output_directory": "packer-oracle-5.11-i386-vmware",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"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",
Expand All @@ -67,16 +67,16 @@
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "centos",
"http_directory": "http",
"iso_checksum": "f4ef2b868a0cccb736664136eca798ec",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-i386-dvd.iso",
"output_directory": "packer-oracle-5.11-i386-parallels",
"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": [
[
Expand All @@ -93,7 +93,7 @@
]
],
"prlctl_version_file": ".prlctl_version",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
Expand All @@ -103,14 +103,14 @@
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"http_directory": "http",
"iso_checksum": "f4ef2b868a0cccb736664136eca798ec",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-i386-dvd.iso",
"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",
Expand All @@ -134,8 +134,13 @@
"type": "file"
},
{
"environment_vars": [],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"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/common/vagrant.sh",
Expand All @@ -153,11 +158,18 @@
"build_timestamp": "{{isotime \"20060102150405\"}}",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "E60962C4EBF8920BBD828EFE32A78A7CC8F28E3B",
"iso_checksum_type": "sha1",
"iso_name": "Enterprise-R5-U11-Server-i386-dvd.iso",
"ks_path": "centos-5.11/ks.cfg",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://mirrors.dotsrc.org/oracle-linux/EL5/U11/i386",
"mirror": "http://mirrors.dotsrc.org/oracle-linux",
"mirror_directory": "EL5/U11/i386",
"name": "oracle-5.11-i386",
"no_proxy": "{{env `no_proxy`}}",
"template": "oracle-5.11-i386",
"version": "2.0.TIMESTAMP"
"version": "2.2.TIMESTAMP"
}
}

66 changes: 39 additions & 27 deletions oracle-5.11-x86_64.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
Expand All @@ -11,11 +11,11 @@
"hard_drive_interface": "sata",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "8af2121088c7e6f5ebdb6d5900403240",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-5.11-x86_64-virtualbox",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"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",
Expand All @@ -40,18 +40,18 @@
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "oraclelinux-64",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "8af2121088c7e6f5ebdb6d5900403240",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-5.11-x86_64-vmware",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"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",
Expand All @@ -67,16 +67,16 @@
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "centos",
"http_directory": "http",
"iso_checksum": "8af2121088c7e6f5ebdb6d5900403240",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-x86_64-dvd.iso",
"output_directory": "packer-oracle-5.11-x86_64-parallels",
"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": [
[
Expand All @@ -93,7 +93,7 @@
]
],
"prlctl_version_file": ".prlctl_version",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
Expand All @@ -103,14 +103,14 @@
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.11/ks.cfg<enter><wait>"
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `ks_path`}}<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"http_directory": "http",
"iso_checksum": "8af2121088c7e6f5ebdb6d5900403240",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/Enterprise-R5-U11-Server-x86_64-dvd.iso",
"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",
Expand All @@ -134,8 +134,13 @@
"type": "file"
},
{
"environment_vars": [],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"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/common/vagrant.sh",
Expand All @@ -153,11 +158,18 @@
"build_timestamp": "{{isotime \"20060102150405\"}}",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "2D38F76652CBC1367FDF30024F13CDE5F6BF34DF",
"iso_checksum_type": "sha1",
"iso_name": "Enterprise-R5-U11-Server-x86_64-dvd.iso",
"ks_path": "centos-5.11/ks.cfg",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://mirrors.dotsrc.org/oracle-linux/EL5/U11/x86_64",
"mirror": "http://mirrors.dotsrc.org/oracle-linux",
"mirror_directory": "EL5/U11/x86_64",
"name": "oracle-5.11",
"no_proxy": "{{env `no_proxy`}}",
"template": "oracle-5.11-x86_64",
"version": "2.0.TIMESTAMP"
"version": "2.2.TIMESTAMP"
}
}

Loading