Skip to content

Instantly share code, notes, and snippets.

@tmclaugh
Last active August 29, 2015 14:09
Show Gist options
  • Save tmclaugh/9f605008f76f872d2ed3 to your computer and use it in GitHub Desktop.
Save tmclaugh/9f605008f76f872d2ed3 to your computer and use it in GitHub Desktop.
Packer - Builders
"builders":
[
{
"type" : "virtualbox-iso",
"boot_command":
[
"<esc>",
" linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks/centos65.ks",
"<enter>",
"<wait>"
],
"http_directory" : ".",
"iso_url" : "http://centos.mirrors.tds.net/pub/linux/centos/6/isos/x86_64/CentOS-6.5-x86_64-minimal.iso",
"iso_checksum" : "f9d84907d77df62017944cb23cab66305e94ee6ae6c1126415b81cc5e999bdd0",
"iso_checksum_type" : "{{user `iso_checksum_type`}}",
"shutdown_command" : "/sbin/halt -p",
"ssh_username" : "root",
"ssh_password" : "packer"
},
{
"type" : "vmware-iso",
"boot_command":
[
"<esc>",
" linux ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks/centos65.ks",
"<enter>",
"<wait>"
],
"http_directory" : ".",
"iso_url" : "http://centos.mirrors.tds.net/pub/linux/centos/6/isos/x86_64/CentOS-6.5-x86_64-minimal.iso",
"iso_checksum" : "f9d84907d77df62017944cb23cab66305e94ee6ae6c1126415b81cc5e999bdd0",
"iso_checksum_type" : "{{user `iso_checksum_type`}}",
"shutdown_command" : "/sbin/halt -p",
"ssh_username" : "root",
"ssh_password" : "packer"
},
{
"type" : "amazon-instance",
"access_key" : "YOUR KEY HERE",
"secret_key" : "YOUR SECRET KEY HERE",
"region" : "us-east-1",
"source_ami" : "ami-8997afe0",
"instance_type" : "m1.small",
"ssh_username" : "root",
"account_id" : "0123-4567-0890",
"s3_bucket" : "packer-images",
"x509_cert_path" : "x509.cert",
"x509_key_path" : "x509.key",
"x509_upload_path" : "/tmp",
"ami_name" : "CentOS 6.5"
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment