Skip to content

Instantly share code, notes, and snippets.

@fcuny
Created July 12, 2015 04:35
Show Gist options
  • Save fcuny/ac8cad84af5f51a923f6 to your computer and use it in GitHub Desktop.
Save fcuny/ac8cad84af5f51a923f6 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.provision :ansible, :playbook => 'playbook.yml'
# This configuration is for our local box, when we use virtualbox as the provider
config.vm.provider :virtualbox do |vb, override|
override.vm.box = "precise64"
override.vm.box_url = "http://files.vagrantup.com/precise64.box"
end
# This configuration is for our EC2 instance
config.vm.provider :aws do |aws, override|
aws.access_key_id = "access key"
aws.secret_access_key = "secret access key"
# ubuntu AMI
aws.ami = "ami-e7582d8e"
aws.keypair_name = "vagrant"
aws.security_groups = ["default", "quicklaunch-1"]
override.vm.box = "dummy"
override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "vagrant.pem"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment