Permalink
Fetching contributors…
Cannot retrieve contributors at this time
83 lines (81 sloc) 3.2 KB
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"project_id": "{{env `GCE_PROJECT_ID`}}",
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
"publish_settings_path": "{{env `AZURE_PUBLISH_SETTINGS`}}"
},
"push": {
"name": "darron/octohost"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key` }}",
"region": "us-east-1",
"source_ami": "ami-2dcf7b46",
"instance_type": "c3.large",
"ssh_username": "ubuntu",
"ami_name": "octohost-chef {{timestamp}}"
},
{
"type": "digitalocean",
"image": "ubuntu-14-04-x64",
"droplet_name": "octohost-chef-{{timestamp}}",
"size": "1gb",
"region": "nyc3",
"snapshot_name": "octohost-chef {{timestamp}}"
},
{
"type": "openstack",
"provider": "rackspace-us",
"openstack_provider": "rackspace",
"region": "iad",
"ssh_username": "root",
"image_name": "octohost-chef {{timestamp}}",
"source_image": "28153eac-1bae-4039-8d9f-f8b513241efe",
"flavor": "3"
},
{
"type": "googlecompute",
"project_id": "{{user `project_id`}}",
"account_file": "{{user `gce_account_file`}}",
"source_image": "ubuntu-1404-trusty-v20150128",
"zone": "us-central1-f",
"image_name": "octohost-{{timestamp}}",
"disk_size": 40
},
{
"type": "azure",
"publish_settings_path": "{{user `publish_settings_path`}}",
"subscription_name": "Free Trial",
"storage_account": "octohost",
"storage_account_container": "images",
"os_type": "Linux",
"os_image_label": "Ubuntu Server 14.04 LTS",
"location": "South Central US",
"instance_size": "Medium",
"user_image_label": "octohost-{{timestamp}}"
},
{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.2-server-amd64.iso",
"iso_checksum": "83aabd8dcf1e8f469f3c72fff2375195",
"iso_checksum_type": "md5",
"ssh_username": "packer",
"ssh_password": "packer",
"ssh_wait_timeout": "30s",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}],
"provisioners": [{
"type": "shell",
"inline": ["sudo apt-get clean && sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" --force-yes -y upgrade"]
},{
"type": "chef-solo",
"install_command": "curl -L https://www.opscode.com/chef/install.sh | sudo bash",
"cookbook_paths": ["./vendor/cookbooks"],
"run_list": [ "octohost" ]
}]
}