Skip to content

Commit

Permalink
Merge pull request #11 from Edraak/aws-support
Browse files Browse the repository at this point in the history
Support AWS in addition to VirtualBox
  • Loading branch information
usernamenumber committed Dec 19, 2014
2 parents fe5466b + 7dc13b0 commit a494885
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ ansible/roles/kalite/data/*
data/provisioning.txt
data/packages/*
!data/packages/README.md
/.idea
28 changes: 28 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,34 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.gui = true
end

config.vm.provider :aws do |aws, override|
aws.access_key_id = ENV['AWS_KEY']
aws.secret_access_key = ENV['AWS_SECRET']
aws.keypair_name = ENV['AWS_KEYNAME']
override.ssh.private_key_path = ENV['AWS_KEYPATH']


# http://cloud-images.ubuntu.com/locator/ec2/
aws.ami = "ami-ecda6c84" # ubuntu 12.04 64

# This one is a 2 years old experiment so it might not be so good
# http://cloud.ubuntu.com/2012/05/ready-to-try-arm-on-the-cloud-try-it-on-amazon-ec2/
# aws.ami = "ami-aef328c7" # ubuntu 12.04 arm image



aws.region = "us-east-1"
aws.instance_type = "m3.medium"

aws.security_groups = ["Widely open"] # you have to add this security group on the selected region
aws.tags = {
'Name' => 'x2go',
}
override.ssh.username = "ubuntu"
override.vm.box = "dummy"
override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
end

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
Expand Down

0 comments on commit a494885

Please sign in to comment.