Skip to content

Instantly share code, notes, and snippets.

@crisu83
Last active December 22, 2015 06:49
Show Gist options
  • Save crisu83/6434138 to your computer and use it in GitHub Desktop.
Save crisu83/6434138 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# VMWare
config.vm.box = "precise64_vmware"
config.vm.box_url = "http://files.vagrantup.com/precise64_vmware.box";
config.vm.network :public_network
# AWS
config.vm.provider :aws do |aws, override|
aws.access_key_id = "..."
aws.secret_access_key = "..."
aws.keypair_name = "..."
aws.region = 'eu-west-1'
aws.instance_type = 'm1.small'
aws.security_groups = ...
aws.ami = "ami-1a070f6e"
override.vm.box = "dummy"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "..."
end
# Enable the bootstrap-script
config.vm.provision :shell, :path => "bootstrap.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment