Skip to content

Commit

Permalink
Merge pull request #152 from lwieske/master
Browse files Browse the repository at this point in the history
Update to packer 0.5.1
  • Loading branch information
juliandunn committed Jan 3, 2014
2 parents 0f6469d + cfea16b commit ddd6ef7
Show file tree
Hide file tree
Showing 36 changed files with 1,085 additions and 684 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rvm:
- 2.0.0

before_install: wget --no-check-certificate https://dl.bintray.com/mitchellh/packer/0.4.1_linux_amd64.zip && unzip -d packer 0.4.1_linux_amd64.zip
before_install: wget --no-check-certificate https://dl.bintray.com/mitchellh/packer/0.5.1_linux_amd64.zip && unzip -d packer 0.5.1_linux_amd64.zip
before_script: export PATH=$PATH:$PWD/packer

script: bundle exec thor packer:validate
41 changes: 27 additions & 14 deletions packer/centos-5.10-i386.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
},
"builders": [
{
"type": "virtualbox",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
Expand All @@ -17,21 +12,31 @@
"iso_checksum": "bb4e61210e1c0389fdf55c59bd2dd7bc957dd400",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/5.10/isos/i386/CentOS-5.10-i386-bin-DVD-1of2.iso",
"output_directory": "packer-centos-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" ]
[
"modifyvm",
"{{.Name}}",
"--memory",
"384"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-centos-5.10-i386",
"output_directory": "packer-centos-5.10-i386-virtualbox"
"vm_name": "packer-centos-5.10-i386"
},
{
"type": "vmware",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
Expand All @@ -42,14 +47,15 @@
"iso_checksum": "bb4e61210e1c0389fdf55c59bd2dd7bc957dd400",
"iso_checksum_type": "sha1",
"iso_url": "http://mirrors.kernel.org/centos/5.10/isos/i386/CentOS-5.10-i386-bin-DVD-1of2.iso",
"tools_upload_flavor": "linux",
"output_directory": "packer-centos-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-centos-5.10-i386",
"output_directory": "packer-centos-5.10-i386-vmware",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "384",
Expand All @@ -65,7 +71,9 @@
],
"provisioners": [
{
"environment_vars": [ "CHEF_VERSION={{user `chef_version`}}" ],
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/common/vagrant.sh",
Expand All @@ -77,5 +85,10 @@
],
"type": "shell"
}
]
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
}
}

41 changes: 27 additions & 14 deletions packer/centos-5.10-x86_64.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
},
"builders": [
{
"type": "virtualbox",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
Expand All @@ -17,21 +12,31 @@
"iso_checksum": "d8403b3fe4972eda3e147ee76d682a4a3beae1e1",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/5.10/isos/x86_64/CentOS-5.10-x86_64-bin-DVD-1of2.iso",
"output_directory": "packer-centos-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" ]
[
"modifyvm",
"{{.Name}}",
"--memory",
"384"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-centos-5.10-x86_64",
"output_directory": "packer-centos-5.10-x86_64-virtualbox"
"vm_name": "packer-centos-5.10-x86_64"
},
{
"type": "vmware",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-5.10/ks.cfg<enter><wait>"
],
Expand All @@ -42,14 +47,15 @@
"iso_checksum": "d8403b3fe4972eda3e147ee76d682a4a3beae1e1",
"iso_checksum_type": "sha1",
"iso_url": "http://mirrors.kernel.org/centos/5.10/isos/x86_64/CentOS-5.10-x86_64-bin-DVD-1of2.iso",
"tools_upload_flavor": "linux",
"output_directory": "packer-centos-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-centos-5.10-x86_64",
"output_directory": "packer-centos-5.10-x86_64-vmware",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "384",
Expand All @@ -65,7 +71,9 @@
],
"provisioners": [
{
"environment_vars": [ "CHEF_VERSION={{user `chef_version`}}" ],
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/common/vagrant.sh",
Expand All @@ -77,5 +85,10 @@
],
"type": "shell"
}
]
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
}
}

40 changes: 26 additions & 14 deletions packer/centos-6.5-i386.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
},
"builders": [
{
"type": "virtualbox",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
Expand All @@ -17,21 +12,31 @@
"iso_checksum": "67ea68068ae53d1f23431072ec0288b3e1abfe4d",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/6.5/isos/i386/CentOS-6.5-i386-bin-DVD1.iso",
"output_directory": "packer-centos-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" ]
[
"modifyvm",
"{{.Name}}",
"--memory",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-centos-6.5-i386",
"output_directory": "packer-centos-6.5-i386-virtualbox"
"vm_name": "packer-centos-6.5-i386"
},
{
"type": "vmware",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
Expand All @@ -42,14 +47,15 @@
"iso_checksum": "67ea68068ae53d1f23431072ec0288b3e1abfe4d",
"iso_checksum_type": "sha1",
"iso_url": "http://mirrors.kernel.org/centos/6.5/isos/i386/CentOS-6.5-i386-bin-DVD1.iso",
"tools_upload_flavor": "linux",
"output_directory": "packer-centos-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-centos-6.5-i386",
"output_directory": "packer-centos-6.5-i386-vmware",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
Expand All @@ -65,7 +71,9 @@
],
"provisioners": [
{
"environment_vars": [ "CHEF_VERSION={{user `chef_version`}}" ],
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/common/sshd.sh",
Expand All @@ -77,6 +85,10 @@
],
"type": "shell"
}
]
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
}
}

41 changes: 27 additions & 14 deletions packer/centos-6.5-x86_64.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
},
"builders": [
{
"type": "virtualbox",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
Expand All @@ -17,21 +12,31 @@
"iso_checksum": "32c7695b97f7dcd1f59a77a71f64f2957dddf738",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso",
"output_directory": "packer-centos-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" ]
[
"modifyvm",
"{{.Name}}",
"--memory",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-centos-6.5-x86_64",
"output_directory": "packer-centos-6.5-x86_64-virtualbox"
"vm_name": "packer-centos-6.5-x86_64"
},
{
"type": "vmware",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
Expand All @@ -42,14 +47,15 @@
"iso_checksum": "32c7695b97f7dcd1f59a77a71f64f2957dddf738",
"iso_checksum_type": "sha1",
"iso_url": "http://mirrors.kernel.org/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso",
"tools_upload_flavor": "linux",
"output_directory": "packer-centos-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-centos-6.5-x86_64",
"output_directory": "packer-centos-6.5-x86_64-vmware",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
Expand All @@ -65,7 +71,9 @@
],
"provisioners": [
{
"environment_vars": [ "CHEF_VERSION={{user `chef_version`}}" ],
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"scripts/common/sshd.sh",
Expand All @@ -77,5 +85,10 @@
],
"type": "shell"
}
]
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
}
}

Loading

0 comments on commit ddd6ef7

Please sign in to comment.