Created
September 5, 2015 14:29
-
-
Save mmarcon/8077379f8e62f1b69724 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
# No need to sync the vagrant folder, everything gets deployed | |
# with the ansible playbook | |
config.vm.synced_folder '.', '/vagrant', :disabled => true | |
config.vm.provider "virtualbox" do |vb| | |
# Display the VirtualBox GUI when booting the machine | |
vb.gui = false | |
vb.memory = "512" | |
end | |
# Confugration for DigitalOcean | |
config.vm.provider :digital_ocean do |provider, override| | |
override.ssh.private_key_path = '~/.ssh/id_rsa' | |
override.vm.box = 'digital_ocean' | |
provider.token = 'DigitalOceanSecretToken' | |
provider.image = 'ubuntu-14-04-x64' | |
provider.region = 'nyc2' | |
provider.size = '512mb' | |
end | |
config.vm.provision :ansible do |ansible| | |
ansible.playbook = "playbook.yml" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment