Skip to content

Commit

Permalink
Support CentOS 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andytson committed Jul 9, 2014
1 parent fb732ca commit 201f288
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions packer/centos-7.0-x86_64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-7.0/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "RedHat_64",
"http_directory": "http",
"iso_checksum": "ee505335bcd4943ffc7e6e6e55e5aaa8da09710b6ceecda82a5619342f1d24d9",
"iso_checksum_type": "sha256",
"iso_url": "{{user `mirror`}}/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso",
"output_directory": "packer-centos-7.0-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-centos-7.0-x86_64"
},
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-7.0/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "centos-64",
"http_directory": "http",
"iso_checksum": "ee505335bcd4943ffc7e6e6e55e5aaa8da09710b6ceecda82a5619342f1d24d9",
"iso_checksum_type": "sha256",
"iso_url": "{{user `mirror`}}/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso",
"output_directory": "packer-centos-7.0-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-7.0-x86_64",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_centos-7.0_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.kernel.org/centos"
}
}

2 comments on commit 201f288

@jedateach
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andytson Have you had any issue being able to assign a static ip in your vagrant file?
We're trying to resolve here: hashicorp/vagrant#4259

@andytson
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hashicorp/vagrant#4171, this is the cause

Please sign in to comment.