Skip to content

Instantly share code, notes, and snippets.

@sit
Created July 16, 2013 20:31
Show Gist options
  • Save sit/6012386 to your computer and use it in GitHub Desktop.
Save sit/6012386 to your computer and use it in GitHub Desktop.
Simple Veewee-inspired CentOS 6.3 box for packer
{
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/chef-client.sh",
"scripts/vagrant.sh"
],
"override": {
"virtualbox": {
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'"
}
}
}
],
"builders": [
{
"type": "virtualbox",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "RedHat_64",
"http_directory": "http",
"iso_checksum": "087713752fa88c03a5e8471c661ad1a2",
"iso_checksum_type": "md5",
"iso_url": "http://mirror.symnds.com/distributions/CentOS-vault/6.3/isos/x86_64/CentOS-6.3-x86_64-minimal.iso",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'rm -f /etc/ssh/ssh_host_*key*; /sbin/halt -h -p' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
]
}
],
"post-processors": ["vagrant"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment