Created
July 12, 2015 04:35
-
-
Save fcuny/ac8cad84af5f51a923f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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