-
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.
- Loading branch information
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
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,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" | ||
} | ||
} | ||
|
201f288
There was a problem hiding this comment.
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
201f288
There was a problem hiding this comment.
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